diff --git a/Makefile b/Makefile index 045d60b..dff8eb3 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,8 @@ GIT_REPO := ssh://git@git.famcosi.duckdns.org:222/gcordova/go-do.git GIT_REF := $(shell git symbolic-ref --short HEAD) GIT_HASH := $(shell git rev-parse --short HEAD) +rwildcard = $(foreach d,$(wildcard $1*),$(call rwildcard,$d/$2) $(filter $2,$d)) + help: @echo "Project: $(PROJECT) v$(VERSION)" @echo "Repository: $(GIT_REPO)" @@ -18,12 +20,11 @@ help: test: $(patsubst %.test,%.stdout,$(call rwildcard,,%.test)) -rwildcard = $(foreach d,$(wildcard $1*),$(call rwildcard,$d/$2) $(filter $2,$d)) - %.stdout: %.test ./$< > $@ 2> $(patsubst %.stdout,%.stderr,%@) \ || (touch --date=@0 $@; false) - git diff --exit-code --src-prefix=expected/ --dst-prefix=actual/ $@ $(patsubst %.stdout,%.stderr,$@) \ + git diff --exit-code --src-prefix=expected/ --dst-prefix=actual/ \ + $@ $(patsubst %.stdout,%.stderr,$@) \ || (touch --date=@0 $@; false) # vim: ai noet ts=8 sw=8: