Add an automatic testing target to the Makefile.

This commit is contained in:
2011-02-03 21:30:46 -05:00
parent 796210198c
commit fafc51da1c

View File

@@ -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)