summaryrefslogtreecommitdiff
path: root/contrib/seg/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/seg/Makefile')
-rw-r--r--contrib/seg/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/contrib/seg/Makefile b/contrib/seg/Makefile
index ac9b543d83..34fff5fb8a 100644
--- a/contrib/seg/Makefile
+++ b/contrib/seg/Makefile
@@ -1,4 +1,4 @@
-# $Header: /cvsroot/pgsql/contrib/seg/Makefile,v 1.6 2001/11/16 16:32:33 petere Exp $
+# $Header: /cvsroot/pgsql/contrib/seg/Makefile,v 1.6.2.1 2005/07/16 19:48:15 tgl Exp $
subdir = contrib/seg
top_builddir = ../..
@@ -13,11 +13,17 @@ REGRESS = seg
segparse.c: segparse.h ;
+# The sed hack is so that we can get the same error messages with
+# bison 1.875 and later as we did with earlier bisons. Eventually,
+# I suppose, we should re-standardize on "syntax error" --- in which
+# case flip the sed translation, but don't remove it.
+
segparse.h: segparse.y
ifdef YACC
$(YACC) -d $(YFLAGS) -p seg_yy $<
- mv -f y.tab.c segparse.c
+ sed -e 's/"syntax error/"parse error/' < y.tab.c > segparse.c
mv -f y.tab.h segparse.h
+ rm -f y.tab.c
else
@$(missing) bison $< $@
endif