diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2001-11-16 16:32:33 +0000 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2001-11-16 16:32:33 +0000 |
commit | aff53b27f0942cf9a0dcc5b10dca528e88b0cabf (patch) | |
tree | 662be25b87828f619e0643fe295f92be8f45c749 /src/interfaces | |
parent | 7c50767f08a37d10638a6f38d0b4f42c1956e214 (diff) |
Make the yacc rules safe for parallel make. See discussion on pgsql-patches
and comment in src/backend/parser/Makefile for the technical details.
Diffstat (limited to 'src/interfaces')
-rw-r--r-- | src/interfaces/ecpg/preproc/Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/interfaces/ecpg/preproc/Makefile b/src/interfaces/ecpg/preproc/Makefile index 7841a8d5017..2c280f7ab7a 100644 --- a/src/interfaces/ecpg/preproc/Makefile +++ b/src/interfaces/ecpg/preproc/Makefile @@ -1,4 +1,4 @@ -# $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/Makefile,v 1.77 2001/09/19 14:09:32 meskes Exp $ +# $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/Makefile,v 1.78 2001/11/16 16:32:33 petere Exp $ subdir = src/interfaces/ecpg/preproc top_builddir = ../../../.. @@ -35,11 +35,13 @@ endif ecpg: $(OBJS) $(CC) $(CFLAGS) $(LDFLAGS) $^ $(LIBS) -o $@ -$(srcdir)/preproc.c $(srcdir)/preproc.h: preproc.y +$(srcdir)/preproc.c: $(srcdir)/preproc.h ; + +$(srcdir)/preproc.h: preproc.y ifdef YACC $(YACC) -d $(YFLAGS) $< - mv y.tab.c $(srcdir)/preproc.c - mv y.tab.h $(srcdir)/preproc.h + mv -f y.tab.c $(srcdir)/preproc.c + mv -f y.tab.h $(srcdir)/preproc.h else @$(missing) bison $< $@ endif |