summaryrefslogtreecommitdiff
path: root/contrib/seg
diff options
context:
space:
mode:
authorPeter Eisentraut2012-10-11 10:57:04 +0000
committerPeter Eisentraut2012-10-11 10:57:04 +0000
commit8521d131941be5a177270bc428fa8e684cd645b5 (patch)
treebfbf285859f3770aedc6b3c674a45d45cc4be5fe /contrib/seg
parentab112068b657a2bd30a7f953c732e2ee75a606f5 (diff)
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 'contrib/seg')
-rw-r--r--contrib/seg/Makefile14
1 files changed, 0 insertions, 14 deletions
diff --git a/contrib/seg/Makefile b/contrib/seg/Makefile
index d84934c67fb..fb9c5765c34 100644
--- a/contrib/seg/Makefile
+++ b/contrib/seg/Makefile
@@ -25,20 +25,6 @@ endif
# segscan is compiled as part of segparse
segparse.o: segscan.c
-segparse.c: segparse.y
-ifdef BISON
- $(BISON) $(BISONFLAGS) -o $@ $<
-else
- @$(missing) bison $< $@
-endif
-
-segscan.c: segscan.l
-ifdef FLEX
- $(FLEX) $(FLEXFLAGS) -o'$@' $<
-else
- @$(missing) flex $< $@
-endif
-
distprep: segparse.c segscan.c
maintainer-clean: