1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-08 00:47:37 +03:00

Derived files that are shipped in the distribution used to be built in the

source directory even for out-of-tree builds.  They are now alsl built in
the build tree.  This should be more convenient for certain developers'
workflows, and shouldn't really break anything else.
This commit is contained in:
Peter Eisentraut
2009-08-28 20:26:19 +00:00
parent 0a00c9a8ef
commit 234c7ce9f2
13 changed files with 95 additions and 109 deletions

View File

@@ -2,7 +2,7 @@
#
# Makefile for parser
#
# $PostgreSQL: pgsql/src/backend/parser/Makefile,v 1.50 2009/08/26 22:15:59 petere Exp $
# $PostgreSQL: pgsql/src/backend/parser/Makefile,v 1.51 2009/08/28 20:26:19 petere Exp $
#
#-------------------------------------------------------------------------
@@ -22,7 +22,7 @@ include $(top_srcdir)/src/backend/common.mk
# scan is compiled as part of gram
gram.o: $(srcdir)/scan.c
gram.o: scan.c
# Latest flex causes warnings in this file.
ifeq ($(GCC),yes)
@@ -37,9 +37,9 @@ endif
# important, otherwise make will choose the built-in rule for
# gram.y=>gram.c.
$(srcdir)/gram.h: $(srcdir)/gram.c ;
gram.h: gram.c ;
$(srcdir)/gram.c: gram.y
gram.c: gram.y
ifdef BISON
$(BISON) -d $(BISONFLAGS) -o $@ $<
else
@@ -47,7 +47,7 @@ else
endif
$(srcdir)/scan.c: scan.l
scan.c: scan.l
ifdef FLEX
$(FLEX) $(FLEXFLAGS) -o'$@' $<
else
@@ -56,7 +56,7 @@ endif
# Force these dependencies to be known even without dependency info built:
gram.o keywords.o parser.o: $(srcdir)/gram.h
gram.o keywords.o parser.o: gram.h
# gram.c, gram.h, and scan.c are in the distribution tarball, so they