Rearrange order of subdirectory creation to help generate parse.h
authorThomas G. Lockhart
Tue, 23 Feb 1999 07:24:08 +0000 (07:24 +0000)
committerThomas G. Lockhart
Tue, 23 Feb 1999 07:24:08 +0000 (07:24 +0000)
 file early enough to use in nodes/.
Try to be more complete for rules on generating parse.h,
 but it still does not work any better than before. Should be able to
 make correctly if parser/gram.y is updated even without a "make clean"
 but so far not there yet.

src/backend/Makefile
src/backend/nodes/Makefile

index 0ec08e55365e40bb040a13fb33d101b6f305e703..4b84b789a0674a76b0b10208e3ca1afc2f4c65d0 100644 (file)
@@ -34,7 +34,7 @@
 #
 #
 # IDENTIFICATION
-#    $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.36 1999/01/21 16:08:36 vadim Exp $
+#    $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.37 1999/02/23 07:24:02 thomas Exp $
 #
 #-------------------------------------------------------------------------
 
@@ -42,7 +42,7 @@ SRCDIR = ..
 include ../Makefile.global
 
 DIRS = access bootstrap catalog commands executor lib libpq \
-   main nodes optimizer parser port postmaster regex rewrite \
+   main parser nodes optimizer port postmaster regex rewrite \
    storage tcop utils
 
 ifdef TIOGA
@@ -115,7 +115,7 @@ postgres.o: $(OBJS)
 # The following targets are specified in make commands that appear in the
 # make files in our subdirectories.
 
-parse.h: 
+parse.h: parser/parse.h
    $(MAKE) -C parser parse.h
    cp parser/parse.h .
 
@@ -154,7 +154,7 @@ endif
 # and (2) the parameters of a database system should be set at initdb time,
 # not at postgres build time.
 
-install: $(LIBDIR) $(BINDIR) $(HEADERDIR) postgres $(POSTGRES_IMP) fmgr.h\
+install: $(LIBDIR) $(BINDIR) $(HEADERDIR) postgres $(POSTGRES_IMP) fmgr.h \
          global1.bki.source local1_template1.bki.source \
          global1.description local1_template1.description \
          libpq/pg_hba.conf.sample optimizer/geqo/pg_geqo.sample
index 0e50980c289c971935d9de28b8a417a46764317f..91bdef03d266d0368afa0cec3c7fd8d91825712a 100644 (file)
@@ -4,7 +4,7 @@
 #    Makefile for nodes
 #
 # IDENTIFICATION
-#    $Header: /cvsroot/pgsql/src/backend/nodes/Makefile,v 1.7 1999/02/06 16:50:24 wieck Exp $
+#    $Header: /cvsroot/pgsql/src/backend/nodes/Makefile,v 1.8 1999/02/23 07:24:08 thomas Exp $
 #
 #-------------------------------------------------------------------------
 
@@ -22,7 +22,12 @@ all: SUBSYS.o
 SUBSYS.o: $(OBJS)
    $(LD) -r -o SUBSYS.o $(OBJS)
 
-depend dep:
+outfuncs.o: ../parse.h
+
+../parse.h:
+   $(MAKE) -C .. parse.h
+
+depend dep: ../parse.h
    $(CC) -MM $(CFLAGS) *.c >depend
 
 clean: