From: Niki Roo Date: Tue, 2 Jul 2024 13:50:54 +0000 (+0200) Subject: init c-tsttree X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=a6f5d9b9ffc502faa202e261e4bac0e9b79d891e;p=template.git init c-tsttree --- diff --git a/makefile.d b/makefile.d old mode 100755 new mode 100644 index 9ac945b..4f60199 --- a/makefile.d +++ b/makefile.d @@ -1,5 +1,5 @@ # -# 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 @@ -72,12 +72,15 @@ rebuild: clean build $(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)