aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas G. Lockhart <lockhart@fourpalms.org>2000-07-14 15:32:04 +0000
committerThomas G. Lockhart <lockhart@fourpalms.org>2000-07-14 15:32:04 +0000
commita4d92053d8c49a5d6c010242471ea46a40f04f7e (patch)
tree0089b4741b30c544aab4a5c42222732c41a2560b /src
parentb4a3b6476ccc6c853d1d5d1ed1858452a50fe9e6 (diff)
downloadpostgresql-a4d92053d8c49a5d6c010242471ea46a40f04f7e.tar.gz
postgresql-a4d92053d8c49a5d6c010242471ea46a40f04f7e.zip
Include rule to build include/parser/parse.h since nothing else can
build in this directory otherwise :(
Diffstat (limited to 'src')
-rw-r--r--src/backend/parser/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/backend/parser/Makefile b/src/backend/parser/Makefile
index 22310f8e282..4ef557271f3 100644
--- a/src/backend/parser/Makefile
+++ b/src/backend/parser/Makefile
@@ -4,12 +4,12 @@
# Makefile for parser
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/backend/parser/Makefile,v 1.26 2000/06/07 16:26:41 petere Exp $
+# $Header: /cvsroot/pgsql/src/backend/parser/Makefile,v 1.27 2000/07/14 15:32:04 thomas Exp $
#
#-------------------------------------------------------------------------
SRCDIR= ../..
-include ../../Makefile.global
+include $(SRCDIR)/Makefile.global
ifeq ($(CC), gcc)
CFLAGS+= -Wno-error
@@ -19,11 +19,14 @@ OBJS= analyze.o gram.o keywords.o parser.o parse_agg.o parse_clause.o \
parse_expr.o parse_func.o parse_node.o parse_oper.o parse_relation.o \
parse_type.o parse_coerce.o parse_target.o scan.o scansup.o
-all: SUBSYS.o
+all: $(SRCDIR)/include/parser/parse.h SUBSYS.o
SUBSYS.o: $(OBJS)
$(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS)
+$(SRCDIR)/include/parser/parse.h: parse.h
+ cp $< $@
+
gram.c parse.h: gram.y
$(YACC) -d $(YFLAGS) $<
mv y.tab.c gram.c