summaryrefslogtreecommitdiff
path: root/src/backend/bootstrap
diff options
context:
space:
mode:
authorPeter Eisentraut2001-02-10 22:31:42 +0000
committerPeter Eisentraut2001-02-10 22:31:42 +0000
commit2660803697fe70411398bc699ef6fdeb90cd33ee (patch)
tree1e0c5a8c2bcee4ec5de5ea6b73238affc4d204be /src/backend/bootstrap
parent20edc4afd2614807d9aad8de5e9854021440ae80 (diff)
Only look for bison as YACC; other yaccs need to be selected explicitly.
When no suitable YACC is configured, supply useful informational messages to users. (Same way flex has been handled for a while.)
Diffstat (limited to 'src/backend/bootstrap')
-rw-r--r--src/backend/bootstrap/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/backend/bootstrap/Makefile b/src/backend/bootstrap/Makefile
index 681043ca52..61f9239e62 100644
--- a/src/backend/bootstrap/Makefile
+++ b/src/backend/bootstrap/Makefile
@@ -2,7 +2,7 @@
#
# Makefile for the bootstrap module
#
-# $Header: /cvsroot/pgsql/src/backend/bootstrap/Makefile,v 1.26 2000/10/20 21:03:41 petere Exp $
+# $Header: /cvsroot/pgsql/src/backend/bootstrap/Makefile,v 1.27 2001/02/10 22:31:42 petere Exp $
#
#-------------------------------------------------------------------------
@@ -42,10 +42,14 @@ endef
$(srcdir)/bootparse.c $(srcdir)/bootstrap_tokens.h: bootparse.y Makefile
+ifdef YACC
$(YACC) -d $(YFLAGS) $<
$(sed-magic) < y.tab.c > $(srcdir)/bootparse.c
$(sed-magic) < y.tab.h > $(srcdir)/bootstrap_tokens.h
rm -f y.tab.c y.tab.h
+else
+ @$(missing) bison $< $@
+endif
$(srcdir)/bootscanner.c: bootscanner.l Makefile
ifdef FLEX