Browse Source

dselect: Use top_builddir instead of top_srcdir to create curkeys.h

The <config.h> file is generated in the top_builddir, and there's
nothing we need from the top_srcdir.
Guillem Jover 17 years ago
parent
commit
41d56b350b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dselect/Makefile.am

+ 1 - 1
dselect/Makefile.am

@@ -51,7 +51,7 @@ CLEANFILES = curkeys.h
 curkeys.$(OBJEXT): curkeys.h
 curkeys.h: $(srcdir)/keyoverride $(srcdir)/mkcurkeys.pl
 	cursesfile=`echo '#include "dselect-curses.h"' | \
-		$(CPP) -I$(top_srcdir) -I$(srcdir) - | \
+		$(CPP) -I$(top_builddir) -I $(srcdir) - | \
 		grep 'curses.h' | head -n 1 | \
 		sed -e 's/^[^"]*"//; s/".*$$//'`; \
 	if [ "$$cursesfile" = "" ]; then \