mirror of
https://github.com/postgres/postgres.git
synced 2025-05-06 19:59:18 +03:00
Modify lextest and GNUmakefile so that if the test does fail, the
make doesn't proceed
This commit is contained in:
parent
718adf8bf7
commit
d7a85cb2c9
@ -7,7 +7,7 @@
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
# IDENTIFICATION
|
# 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;\
|
else true;\
|
||||||
fi
|
fi
|
||||||
$(MAKE) -C lextest all
|
$(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 utils all
|
||||||
$(MAKE) -C backend all
|
$(MAKE) -C backend all
|
||||||
$(MAKE) -C libpq all
|
$(MAKE) -C libpq all
|
||||||
|
@ -13,7 +13,7 @@ lextest: lextest.c scan.l
|
|||||||
$(CC) -c lex.yy.c
|
$(CC) -c lex.yy.c
|
||||||
$(CC) -c lextest.c
|
$(CC) -c lextest.c
|
||||||
$(CC) -o lextest lex.yy.o lextest.o
|
$(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:
|
clean:
|
||||||
rm -f lextest lex.yy.c lex.yy.o lextest.o
|
rm -f lextest lex.yy.c lex.yy.o lextest.o
|
||||||
|
Loading…
x
Reference in New Issue
Block a user