Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd7a85cb

Browse files
committed
Modify lextest and GNUmakefile so that if the test does fail, the
make doesn't proceed
1 parent718adf8 commitd7a85cb

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

‎src/GNUmakefile.in

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#
88
#
99
# IDENTIFICATION
10-
# $Header: /cvsroot/pgsql/src/Attic/GNUmakefile.in,v 1.14 1997/05/14 04:46:32 momjian Exp $
10+
# $Header: /cvsroot/pgsql/src/Attic/GNUmakefile.in,v 1.15 1997/05/16 01:59:51 scrappy Exp $
1111
#
1212
#-------------------------------------------------------------------------
1313

@@ -31,6 +31,14 @@ all:
3131
else true;\
3232
fi
3333
$(MAKE) -C lextest all
34+
@if test ! -f lextest/lextest; then \
35+
echo "";\
36+
echo "You have a buggy version of flex. Read INSTALL and search for flex for a fix.";\
37+
echo "";\
38+
false;\
39+
else \
40+
true;\
41+
fi
3442
$(MAKE) -C utils all
3543
$(MAKE) -C backend all
3644
$(MAKE) -C libpq all

‎src/lextest/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ lextest: lextest.c scan.l
1313
$(CC) -c lex.yy.c
1414
$(CC) -c lextest.c
1515
$(CC) -o lextest lex.yy.o lextest.o
16-
@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
16+
@echo"If this fails, flex is broken"|./lextest||rm -f lextest
1717

1818
clean:
1919
rm -f lextest lex.yy.c lex.yy.o lextest.o

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp