Skip to content
Snippets Groups Projects
Commit 718adf8b authored by Marc G. Fournier's avatar Marc G. Fournier
Browse files

Have Make process exit if lextest fails

parent cc349d2c
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ lextest: lextest.c scan.l ...@@ -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." @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
clean: clean:
rm -f lextest lex.yy.c lex.yy.o lextest.o rm -f lextest lex.yy.c lex.yy.o lextest.o
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment