diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2012-10-11 06:57:04 -0400 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2012-10-11 06:57:04 -0400 |
commit | 8521d131941be5a177270bc428fa8e684cd645b5 (patch) | |
tree | bfbf285859f3770aedc6b3c674a45d45cc4be5fe /src/interfaces/ecpg | |
parent | ab112068b657a2bd30a7f953c732e2ee75a606f5 (diff) | |
download | postgresql-8521d131941be5a177270bc428fa8e684cd645b5.tar.gz postgresql-8521d131941be5a177270bc428fa8e684cd645b5.zip |
Refactor flex and bison make rules
Numerous flex and bison make rules have appeared in the source tree
over time, and they are all virtually identical, so we can replace
them by pattern rules with some variables for customization.
Users of pgxs will also be able to benefit from this.
Diffstat (limited to 'src/interfaces/ecpg')
-rw-r--r-- | src/interfaces/ecpg/preproc/Makefile | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/interfaces/ecpg/preproc/Makefile b/src/interfaces/ecpg/preproc/Makefile index dec425e553d..6e117d49c76 100644 --- a/src/interfaces/ecpg/preproc/Makefile +++ b/src/interfaces/ecpg/preproc/Makefile @@ -42,20 +42,7 @@ ecpg: $(OBJS) | submake-libpgport preproc.o: pgc.c preproc.h: preproc.c ; - -preproc.c: preproc.y -ifdef BISON - $(BISON) -d $(BISONFLAGS) -o $@ $< -else - @$(missing) bison $< $@ -endif - -pgc.c: pgc.l -ifdef FLEX - $(FLEX) $(FLEXFLAGS) -o'$@' $< -else - @$(missing) flex $< $@ -endif +preproc.c: BISONFLAGS += -d preproc.y: ../../../backend/parser/gram.y parse.pl ecpg.addons ecpg.header ecpg.tokens ecpg.trailer ecpg.type $(PERL) $(srcdir)/parse.pl $(srcdir) < $< > $@ |