diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2000-07-13 16:07:14 +0000 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2000-07-13 16:07:14 +0000 |
commit | 8a3cbc84efdf3ba205b5aece838ffbe1d548e851 (patch) | |
tree | 7aaf56fd94baa0097c1bb0682998fc9b27be2c97 /src/backend/optimizer/Makefile | |
parent | 9191d684a7dad1bba82427b760ff61912df1d7d0 (diff) | |
download | postgresql-8a3cbc84efdf3ba205b5aece838ffbe1d548e851.tar.gz |
Repair parallel make in backend tree (and make it really parallel).
Make Gen_fmgrtab.sh reasonably robust against concurrent invocation.
Diffstat (limited to 'src/backend/optimizer/Makefile')
-rw-r--r-- | src/backend/optimizer/Makefile | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/src/backend/optimizer/Makefile b/src/backend/optimizer/Makefile index d99ea9c4f6..accb3c033d 100644 --- a/src/backend/optimizer/Makefile +++ b/src/backend/optimizer/Makefile @@ -1,32 +1,30 @@ -#------------------------------------------------------------------------- # -# Makefile-- -# Makefile for optimizer +# Makefile for optimizer # -# IDENTIFICATION -# $Header: /cvsroot/pgsql/src/backend/optimizer/Makefile,v 1.7 1999/12/13 22:32:48 momjian Exp $ +# $Header: /cvsroot/pgsql/src/backend/optimizer/Makefile,v 1.8 2000/07/13 16:06:44 petere Exp $ # -#------------------------------------------------------------------------- -SRCDIR= ../.. +subdir = src/backend/optimizer +top_builddir = ../../.. include ../../Makefile.global -all: submake SUBSYS.o +SUBDIRS := geqo path plan prep util +SUBDIROBJS := $(SUBDIRS:%=%/SUBSYS.o) -OBJS = path/SUBSYS.o plan/SUBSYS.o prep/SUBSYS.o util/SUBSYS.o geqo/SUBSYS.o +all: SUBSYS.o -DIRS = path plan prep util geqo +SUBSYS.o: $(SUBDIROBJS) + $(LD) $(LDREL) $(LDOUT) $@ $^ -SUBSYS.o: $(OBJS) - $(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS) +$(SUBDIROBJS): $(SUBDIRS:%=%-recursive) -.PHONY: submake clean dep depend -submake: - for i in $(DIRS); do $(MAKE) -C $$i SUBSYS.o; done +.PHONY: $(SUBDIRS:%=%-recursive) +$(SUBDIRS:%=%-recursive): + $(MAKE) -C $(subst -recursive,,$@) SUBSYS.o clean: + for dir in $(SUBDIRS); do $(MAKE) -C $$dir $@ || exit; done rm -f SUBSYS.o - for i in $(DIRS); do $(MAKE) -C $$i clean; done -.DEFAULT: - for i in $(DIRS); do $(MAKE) -C $$i $@; done +dep depend: + for dir in $(SUBDIRS); do $(MAKE) -C $$dir $@ || exit; done |