aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Henderson <bryanh@giraffe.netgate.net>1996-11-03 09:05:30 +0000
committerBryan Henderson <bryanh@giraffe.netgate.net>1996-11-03 09:05:30 +0000
commita7a0b3ba304d8cbc46aec1b1a2e15119aa5637b8 (patch)
tree9b262a9d7971835fb3c7ff80025eb650096ec22c
parenta505db6f330e558559e879f0a42a968665af4f11 (diff)
downloadpostgresql-a7a0b3ba304d8cbc46aec1b1a2e15119aa5637b8.tar.gz
postgresql-a7a0b3ba304d8cbc46aec1b1a2e15119aa5637b8.zip
Keep the generated .h files in the local directory, like other object files,
rather than in src/include with normal header files. Necessary to make dependancies work out so they don't keep getting rebuilt for no reason.
-rw-r--r--src/backend/Makefile51
1 files changed, 28 insertions, 23 deletions
diff --git a/src/backend/Makefile b/src/backend/Makefile
index 11fa20b12a4..5fe2088a90b 100644
--- a/src/backend/Makefile
+++ b/src/backend/Makefile
@@ -34,7 +34,7 @@
#
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.13 1996/11/01 03:35:43 momjian Exp $
+# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.14 1996/11/03 09:05:30 bryanh Exp $
#
#-------------------------------------------------------------------------
@@ -143,34 +143,34 @@ postgres: postgres_group1 postgres_group2 postgres_group3 postgres_group4
$(CC) $(LDFLAGS) -o postgres $(OBJS) $(LDADD)
postgres_group1:
- $(MAKE) -C access SUBSYS.o
- $(MAKE) -C bootstrap SUBSYS.o
- $(MAKE) -C catalog SUBSYS.o
- $(MAKE) -C commands SUBSYS.o
+ $(MAKE) -C access all
+ $(MAKE) -C bootstrap all
+ $(MAKE) -C catalog SUBSYS.o
+ $(MAKE) -C commands all
postgres_group2:
- $(MAKE) -C executor SUBSYS.o
- $(MAKE) -C lib SUBSYS.o
- $(MAKE) -C libpq SUBSYS.o
- $(MAKE) -C main SUBSYS.o
- $(MAKE) -C nodes SUBSYS.o
+ $(MAKE) -C executor all
+ $(MAKE) -C lib all
+ $(MAKE) -C libpq all
+ $(MAKE) -C main all
+ $(MAKE) -C nodes all
postgres_group3:
- $(MAKE) -C optimizer SUBSYS.o
- $(MAKE) -C parser SUBSYS.o
- $(MAKE) -C port SUBSYS.o PORTNAME=$(PORTNAME)
- $(MAKE) -C postmaster SUBSYS.o
- $(MAKE) -C regex SUBSYS.o
+ $(MAKE) -C optimizer all
+ $(MAKE) -C parser all
+ $(MAKE) -C port all PORTNAME=$(PORTNAME)
+ $(MAKE) -C postmaster all
+ $(MAKE) -C regex all
postgres_group4:
- $(MAKE) -C rewrite SUBSYS.o
- $(MAKE) -C storage SUBSYS.o
- $(MAKE) -C tcop SUBSYS.o
- $(MAKE) -C utils SUBSYS.o
+ $(MAKE) -C rewrite all
+ $(MAKE) -C storage all
+ $(MAKE) -C tcop all
+ $(MAKE) -C utils all
ifdef TIOGA
- $(MAKE) -C tioga SUBSYS.o
+ $(MAKE) -C tioga all
endif
global1.bki.source local1_template1.bki.source:
$(MAKE) -C catalog $@
- cp catalog/$@ ../include
+ cp catalog/$@ .
############################################################################
@@ -179,11 +179,11 @@ global1.bki.source local1_template1.bki.source:
parse.h:
$(MAKE) -C parser parse.h
- cp parser/parse.h ../include
+ cp parser/parse.h .
fmgr.h:
$(MAKE) -C utils fmgr.h
- cp utils/fmgr.h ../include
+ cp utils/fmgr.h .
#############################################################################
clean:
@@ -276,6 +276,11 @@ $(D_BINDIR) $(D_LIBDIR) $(HEADERDIR):
#
# Support for code development.
#
+# Use target "quick" to build "postgres" when you know all the subsystems
+# are up to date. It saves the time of doing all the submakes.
+.PHONY: quick
+quick: $(OBJS)
+ $(CC) $(LDFLAGS) -o postgres $(OBJS) $(LDADD)
#
# Build the file, "./ID", used by the "gid" (grep-for-identifier) tool