When I configure and make in a separate build directory tree, I get

        createdb.c:15: dumputils.h: No such file or directory
        print.c:9: common.h: No such file or directory

in src/bin/scripts.  I don't know whether the attached change to the
Makefile is the preferred way to fix this, at least it works for me.

BTW, make creates these files in the source tree:

Shouldn't they better be created in the build tree?

diff -ruN ../base/src/bin/scripts/Makefile src/bin/scripts/Makefile
--- ../base/src/bin/scripts/Makefile    2003-04-04 15:45:47.000000000 +0200
+++ src/bin/scripts/Makefile    2003-04-05 14:42:15.000000000 +0200
@@ -16,7 +16,7 @@
 SCRIPTS := vacuumdb clusterdb
 PROGRAMS = createdb createlang createuser dropdb droplang dropuser
-override CPPFLAGS := -I$(libpq_srcdir) $(CPPFLAGS)
+override CPPFLAGS := -I$(libpq_srcdir) -I. -I$(top_srcdir)/src/bin/scripts $(CPPFLAGS)
 all: submake-libpq submake-backend $(PROGRAMS)
---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to [EMAIL PROTECTED] so that your
message can get through to the mailing list cleanly

Reply via email to