#
-# Makefile for C projets
+# Makefile for C test projets
# > NAME : the name of the main program (if programs, make a single .d file
# per program, link them up in Makfile and use a $ssrcdir)
# > srcdir : the source directory
$(NAME): deps $(dstdir)/$(NAME)
-# Program, so no test
-run:
+# Test program, so running = running tests
+run: run-test
+test: build
+run-test: test
@echo
- $(dstdir)/$(NAME) --help
-test run-test run-test-more:
- @echo you are in the sources of the program, look at the tests instead
+ $(dstdir)/$(NAME)
+run-test-more: test
+ @echo
+ $(dstdir)/$(NAME) --more
$(dstdir)/$(NAME): $(OBJECTS)
mkdir -p $(dstdir)