From bb7c0da10444b45f96f31c18612c96e6400cddc3 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sat, 20 Mar 1999 18:00:38 +0000 Subject: [PATCH] Clean up build procedure: do not keep raw lex/yacc files around, only the edited ones. --- src/pl/plpgsql/src/Makefile.in | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/pl/plpgsql/src/Makefile.in b/src/pl/plpgsql/src/Makefile.in index a38f5093a2..f7509a6678 100644 --- a/src/pl/plpgsql/src/Makefile.in +++ b/src/pl/plpgsql/src/Makefile.in @@ -4,7 +4,7 @@ # Makefile for the plpgsql shared object # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/pl/plpgsql/src/Attic/Makefile.in,v 1.14 1999/02/07 22:10:47 tgl Exp $ +# $Header: /cvsroot/pgsql/src/pl/plpgsql/src/Attic/Makefile.in,v 1.15 1999/03/20 18:00:38 tgl Exp $ # #------------------------------------------------------------------------- @@ -60,18 +60,16 @@ pl_funcs.o: pl_funcs.c plpgsql.h pl.tab.h pl_parse.o: pl_gram.c pl_scan.c plpgsql.h $(CC) $(CFLAGS) -c -o $@ pl_gram.c -pl_gram.c: gram.c - sed -e 's/yy/plpgsql_yy/g' -e 's/YY/PLPGSQL_YY/g' pl_gram.c +pl_gram.c pl.tab.h: gram.y + $(YACC) $(YFLAGS) $< + sed -e 's/yy/plpgsql_yy/g' -e 's/YY/PLPGSQL_YY/g' pl_gram.c sed -e 's/yy/plpgsql_yy/g' -e 's/YY/PLPGSQL_YY/g' pl.tab.h + rm -f y.tab.c y.tab.h -pl_scan.c: scan.c - sed -e 's/yy/plpgsql_yy/g' -e 's/YY/PLPGSQL_YY/g' pl_scan.c - -gram.c: gram.y - -scan.c: scan.l - -pl.tab.h: pl_gram.c +pl_scan.c: scan.l + $(LEX) $< + sed -e 's/yy/plpgsql_yy/g' -e 's/YY/PLPGSQL_YY/g' pl_scan.c + rm -f lex.yy.c .PHONY: install clean @@ -79,6 +77,8 @@ pl.tab.h: pl_gram.c clean: rm -f lib$(NAME).a $(shlib) rm -f *.o pl.tab.h pl_gram.c pl_scan.c +# And the garbage that might have been left behind by partial build: + rm -f y.tab.c y.tab.h lex.yy.c ifeq ($(PORTNAME), win) rm -f $(NAME).def endif -- 2.40.0