summaryrefslogtreecommitdiff
path: root/src/backend/bootstrap
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2012-10-11 06:57:04 -0400
committerPeter Eisentraut <peter_e@gmx.net>2012-10-11 06:57:04 -0400
commit8521d131941be5a177270bc428fa8e684cd645b5 (patch)
treebfbf285859f3770aedc6b3c674a45d45cc4be5fe /src/backend/bootstrap
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 'src/backend/bootstrap')
-rw-r--r--src/backend/bootstrap/Makefile16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/backend/bootstrap/Makefile b/src/backend/bootstrap/Makefile
index a77d8648008..672bc8b6d7b 100644
--- a/src/backend/bootstrap/Makefile
+++ b/src/backend/bootstrap/Makefile
@@ -16,24 +16,8 @@ OBJS= bootparse.o bootstrap.o
include $(top_srcdir)/src/backend/common.mk
-
# bootscanner is compiled as part of bootparse
bootparse.o: bootscanner.c
-bootparse.c: bootparse.y
-ifdef BISON
- $(BISON) $(BISONFLAGS) -o $@ $<
-else
- @$(missing) bison $< $@
-endif
-
-bootscanner.c: bootscanner.l
-ifdef FLEX
- $(FLEX) $(FLEXFLAGS) -o'$@' $<
-else
- @$(missing) flex $< $@
-endif
-
-
# bootparse.c and bootscanner.c are in the distribution tarball, so
# they are not cleaned here.