Skip to content

Commit

Permalink
Tweaked makefile
Browse files Browse the repository at this point in the history
Suppress messages when remove test with the clean rule.
Renamed runtest rule to run.
  • Loading branch information
PG1003 committed Oct 31, 2020
1 parent 9946ae9 commit 3e86e0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ all: test
test: tests.cpp $(SRCDIR)/lex.cpp $(SRCDIR)/lex.h
$(CXX) $(CXXFLAGS) $(INCLUDES) -o $@ tests.cpp $(SRCDIR)/lex.cpp

runtest : test
run : test
@./test && : || { echo ">>> Test 1 failed!"; exit 1; }
@echo " _"
@echo " /(|"
Expand All @@ -25,4 +25,4 @@ runtest : test
# https://asciiart.website/index.php?art=people/body%20parts/hand%20gestures

clean:
rm test
rm -f test

0 comments on commit 3e86e0c

Please sign in to comment.