aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1997-05-16 02:00:03 +0000
committerMarc G. Fournier <scrappy@hub.org>1997-05-16 02:00:03 +0000
commitd7a85cb2c9ea23ba76dbcd155a123c7a0589530f (patch)
tree68cb4a8865ead4e4785b843ae6f5d38e7951e6bc
parent718adf8bf7e8c7230da17acb95dfcb2d7eadae98 (diff)
downloadpostgresql-d7a85cb2c9ea23ba76dbcd155a123c7a0589530f.tar.gz
postgresql-d7a85cb2c9ea23ba76dbcd155a123c7a0589530f.zip
Modify lextest and GNUmakefile so that if the test does fail, the
make doesn't proceed
-rw-r--r--src/GNUmakefile.in10
-rw-r--r--src/lextest/Makefile2
2 files changed, 10 insertions, 2 deletions
diff --git a/src/GNUmakefile.in b/src/GNUmakefile.in
index 794104c9983..97bc9997d07 100644
--- a/src/GNUmakefile.in
+++ b/src/GNUmakefile.in
@@ -7,7 +7,7 @@
#
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/Attic/GNUmakefile.in,v 1.14 1997/05/14 04:46:32 momjian Exp $
+# $Header: /cvsroot/pgsql/src/Attic/GNUmakefile.in,v 1.15 1997/05/16 01:59:51 scrappy Exp $
#
#-------------------------------------------------------------------------
@@ -31,6 +31,14 @@ all:
else true;\
fi
$(MAKE) -C lextest all
+ @if test ! -f lextest/lextest; then \
+ echo "";\
+ echo "You have a buggy version of flex. Read INSTALL and search for flex for a fix.";\
+ echo "";\
+ false;\
+ else \
+ true;\
+ fi
$(MAKE) -C utils all
$(MAKE) -C backend all
$(MAKE) -C libpq all
diff --git a/src/lextest/Makefile b/src/lextest/Makefile
index f95b8aeb5fc..033629c020e 100644
--- a/src/lextest/Makefile
+++ b/src/lextest/Makefile
@@ -13,7 +13,7 @@ lextest: lextest.c scan.l
$(CC) -c lex.yy.c
$(CC) -c lextest.c
$(CC) -o lextest lex.yy.o lextest.o
- @echo "If this fails, flex is broken" | lextest || echo "You have a buggy version of flex. Read INSTALL and search for flex for a fix.";exit
+ @echo "If this fails, flex is broken" | ./lextest || rm -f lextest
clean:
rm -f lextest lex.yy.c lex.yy.o lextest.o