summaryrefslogtreecommitdiff
path: root/src/backend/Makefile
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1997-12-17 04:59:16 +0000
committerMarc G. Fournier <scrappy@hub.org>1997-12-17 04:59:16 +0000
commit542d4e528d9622b2f0d0f9444fb963a9c6b1c209 (patch)
treecf85e0a52a8d0e75c70c5b93c6321202da292b5d /src/backend/Makefile
parent9ef6b32c4711f16b93cd51ce4bcf48c06a53f729 (diff)
downloadpostgresql-542d4e528d9622b2f0d0f9444fb963a9c6b1c209.tar.gz
First pass through, of many to come, towards making the whole source
tree "non-PORTNAME" dependent. Technically, anything that is PORTNAME dependent should be able to be derived at compile time, through configure or through gcc
Diffstat (limited to 'src/backend/Makefile')
-rw-r--r--src/backend/Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/backend/Makefile b/src/backend/Makefile
index 0fa6123b53..ef80cebcd5 100644
--- a/src/backend/Makefile
+++ b/src/backend/Makefile
@@ -34,7 +34,7 @@
#
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.27 1997/11/13 03:22:10 momjian Exp $
+# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.28 1997/12/17 04:58:19 scrappy Exp $
#
#-------------------------------------------------------------------------
@@ -60,7 +60,11 @@ postgres: $(OBJS) ../utils/version.o
$(OBJS): $(DIRS:%=%.dir)
$(DIRS:%=%.dir):
+ifdef PORTNAME
$(MAKE) -C $(subst .dir,,$@) all PORTNAME=$(PORTNAME)
+else
+ $(MAKE) -C $(subst .dir,,$@) all
+endif
../utils/version.o:
$(MAKE) -C ../utils version.o
@@ -96,10 +100,18 @@ clean:
rm -f postgres $(POSTGRES_IMP) fmgr.h parse.h \
global1.bki.source local1_template1.bki.source \
global1.description local1_template1.description
+ifdef PORTNAME
for i in $(DIRS); do $(MAKE) -C $$i clean PORTNAME=$(PORTNAME); done
+else
+ for i in $(DIRS); do $(MAKE) -C $$i clean; done
+endif
.DEFAULT:
+ifdef PORTNAME
for i in $(DIRS); do $(MAKE) -C $$i $@ PORTNAME=$(PORTNAME); done
+else
+ for i in $(DIRS); do $(MAKE) -C $$i $@; done
+endif
#############################################################################
#