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)