From e70ee19ebc47285f99adaf81ec648ba37b8d0953 Mon Sep 17 00:00:00 2001 From: Mattia Basaglia Date: Fri, 8 Nov 2013 17:36:09 +0100 Subject: [PATCH] Make show target --- Makefile | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 7b9d515..60bcc95 100644 --- a/Makefile +++ b/Makefile @@ -15,15 +15,20 @@ OUT_PLAIN=$(addsuffix .plain.txt,$(PONIES)) OUT_COLOR=$(addsuffix .colored.txt,$(PONIES)) find_deps=$(subst ;,\;,$(wildcard $(1)/*)) +.PHONY: show + all: $(OUT_COLOR) $(OUT_PLAIN) -%.colored.txt : $(SCRIPT) -%.colored.txt : $(PWD)/Makefile +# %.colored.txt : $(SCRIPT) +# %.colored.txt : $(PWD)/Makefile %.colored.txt : $(call find_deps, $*) $(SCRIPT) $* >$*.colored.txt -%.plain.txt : $(SCRIPT) -%.plain.txt : $(PWD)/Makefile +# %.plain.txt : $(SCRIPT) +# %.plain.txt : $(PWD)/Makefile %.plain.txt : $(call find_deps, $*) - $(SCRIPT) $* >$*.plain.txt nocolor \ No newline at end of file + $(SCRIPT) $* >$*.plain.txt nocolor + +show: $(PONY).colored.txt + @cat $(PONY).colored.txt \ No newline at end of file