Commit a4d92053 authored by Thomas G. Lockhart's avatar Thomas G. Lockhart

Include rule to build include/parser/parse.h since nothing else can

 build in this directory otherwise :(
parent b4a3b647
...@@ -4,12 +4,12 @@ ...@@ -4,12 +4,12 @@
# Makefile for parser # Makefile for parser
# #
# IDENTIFICATION # 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= ../.. SRCDIR= ../..
include ../../Makefile.global include $(SRCDIR)/Makefile.global
ifeq ($(CC), gcc) ifeq ($(CC), gcc)
CFLAGS+= -Wno-error CFLAGS+= -Wno-error
...@@ -19,11 +19,14 @@ OBJS= analyze.o gram.o keywords.o parser.o parse_agg.o parse_clause.o \ ...@@ -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_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 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) SUBSYS.o: $(OBJS)
$(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS) $(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS)
$(SRCDIR)/include/parser/parse.h: parse.h
cp $< $@
gram.c parse.h: gram.y gram.c parse.h: gram.y
$(YACC) -d $(YFLAGS) $< $(YACC) -d $(YFLAGS) $<
mv y.tab.c gram.c mv y.tab.c gram.c
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment