makefile enhancements

This commit is contained in:
Joseph Poirier 2015-06-14 02:40:24 -05:00
parent b83f9a66dc
commit 3ba3fa5997
2 changed files with 15 additions and 6 deletions

View file

@ -20,9 +20,9 @@ $(TARGET): $(OBJS)
$(CC) $(CFLAGS) -o $(TARGET) $(OBJS) $(LIBS)
test: all
(cd tests; make test)
(cd tests; make csmith)
(cd tests; make jpoirier)
@(cd tests; make -s test)
@(cd tests; make -s csmith)
@(cd tests; make -s jpoirier)
clean:
rm -f $(TARGET) $(OBJS) *~

View file

@ -90,11 +90,20 @@ include jpoirier/Makefile
all: test
test: $(TESTS)
@echo "test passed"
@echo "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"
@echo "%%%%%%%%%%%% Tests Passed %%%%%%%%%%%%"
@echo "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"
@echo
csmith: $(CSMITH_TESTS)
@echo "CSmith test passed"
@echo "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"
@echo "%%%%%%%%%%%% CSmith Tests Passed %%%%%%%%%%%%"
@echo "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"
@echo
jpoirier: $(JPOIRIER_TESTS)
@echo "JPoirier test passed"
@echo "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"
@echo "%%%%%%%%%%%% JPoirier Tests Passed %%%%%%%%%%%%"
@echo "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"
@echo