]> git.scottworley.com Git - slidingtile/blobdiff - Makefile
Use the existing list of tests rather than making a new list with a glob.
[slidingtile] / Makefile
index 333a6416e79d6a20cc2008439b5744db752c9eb7..5994d06dc0b9f0f54be1c464b28f7b94996d10b4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -17,10 +17,10 @@ TESTS=$(subst .cc,,$(TEST_SRCS))
 all:    $(MAIN) $(TESTS)
 
 test:   $(TESTS)
-       for t in ./*_test; do if ! $$t; then exit 1; fi ;done
+       for t in $(TESTS); do if ! ./$$t; then exit 1; fi ;done
 
 clean:
-       rm -f *.o $(MAIN) $(TESTS)
+       rm -f *.o $(MAIN) $(TESTS) Makefile.bak
 
 $(MAIN): $(OBJS)
        $(CXX) $(CXXFLAGS) -o $@ $^ $(LFLAGS) $(LIBS)