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

	createdb.c:15: dumputils.h: No such file or directory
and
	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:
./src/backend/bootstrap/bootparse.c
./src/backend/bootstrap/bootscanner.c
./src/backend/bootstrap/bootstrap_tokens.h
./src/backend/parser/gram.c
./src/backend/parser/parse.h
./src/backend/parser/scan.c
./src/backend/utils/misc/guc-file.c
./src/bin/psql/sql_help.h
./src/interfaces/ecpg/preproc/pgc.c
./src/interfaces/ecpg/preproc/preproc.c
./src/interfaces/ecpg/preproc/preproc.h
./src/pl/plpgsql/src/pl.tab.h
./src/pl/plpgsql/src/pl_gram.c
./src/pl/plpgsql/src/pl_scan.c

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

Servus
 Manfred

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)
Sat, 05 Apr 2003 16:13:03 +0200
Manfred Koizar <mkoi-pg@aon.at>
Separate build directory