Add an automatic testing target to the Makefile.
This commit is contained in:
6
Makefile
6
Makefile
@@ -34,7 +34,9 @@ clean:
|
|||||||
$(FIND) . -name '*.o' -delete
|
$(FIND) . -name '*.o' -delete
|
||||||
$(RM) -f $(TARGET) $(OBJECTS) $(EXTRA_CLEAN)
|
$(RM) -f $(TARGET) $(OBJECTS) $(EXTRA_CLEAN)
|
||||||
|
|
||||||
foo:
|
test: $(TARGET)
|
||||||
@echo $(DEPENDS)
|
@echo -n "Lex test ... "
|
||||||
|
@for f in `find . -name '*.bs'`; do $(TOPDIR)/$(TARGET) -lex $$f > /dev/null; done
|
||||||
|
@echo "passed."
|
||||||
|
|
||||||
-include $(DEPENDS)
|
-include $(DEPENDS)
|
||||||
|
|||||||
Reference in New Issue
Block a user