From fafc51da1c45b63ec678d28920632621f2a91597 Mon Sep 17 00:00:00 2001 From: Adam Wick Date: Thu, 3 Feb 2011 21:30:46 -0500 Subject: [PATCH] Add an automatic testing target to the Makefile. --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f0f61a1..4aedf6f 100644 --- a/Makefile +++ b/Makefile @@ -34,7 +34,9 @@ clean: $(FIND) . -name '*.o' -delete $(RM) -f $(TARGET) $(OBJECTS) $(EXTRA_CLEAN) -foo: - @echo $(DEPENDS) +test: $(TARGET) + @echo -n "Lex test ... " + @for f in `find . -name '*.bs'`; do $(TOPDIR)/$(TARGET) -lex $$f > /dev/null; done + @echo "passed." -include $(DEPENDS)