summaryrefslogtreecommitdiff
path: root/contrib/cube
diff options
context:
space:
mode:
authorPeter Eisentraut2001-02-10 22:31:42 +0000
committerPeter Eisentraut2001-02-10 22:31:42 +0000
commit2660803697fe70411398bc699ef6fdeb90cd33ee (patch)
tree1e0c5a8c2bcee4ec5de5ea6b73238affc4d204be /contrib/cube
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 'contrib/cube')
-rw-r--r--contrib/cube/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/cube/Makefile b/contrib/cube/Makefile
index 3bf289f30c..7ac1d008c6 100644
--- a/contrib/cube/Makefile
+++ b/contrib/cube/Makefile
@@ -1,5 +1,5 @@
#
-# $Header: /cvsroot/pgsql/contrib/cube/Makefile,v 1.1 2000/12/11 20:39:14 tgl Exp $
+# $Header: /cvsroot/pgsql/contrib/cube/Makefile,v 1.2 2001/02/10 22:31:42 petere Exp $
#
subdir = contrib/cube
@@ -25,9 +25,13 @@ include $(top_srcdir)/src/Makefile.shlib
cubeparse.c cubeparse.h: cubeparse.y
+ifdef YACC
$(YACC) -d $(YFLAGS) -p cube_yy $<
mv -f y.tab.c cubeparse.c
mv -f y.tab.h cubeparse.h
+else
+ @$(missing) bison $< $@
+endif
cubescan.c: cubescan.l
ifdef FLEX