Skip to content

Commit

Permalink
makefile enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
jpoirier committed Jun 14, 2015
1 parent b83f9a6 commit 3ba3fa5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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) *~
Expand Down
15 changes: 12 additions & 3 deletions tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3ba3fa5

Please sign in to comment.