mirror of
https://gitlab.com/mattia.basaglia/ASCII-Pony.git
synced 2024-11-21 19:57:59 +01:00
Make show target
This commit is contained in:
parent
1cdbcdf91a
commit
e70ee19ebc
1 changed files with 10 additions and 5 deletions
15
Makefile
15
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
|
||||
$(SCRIPT) $* >$*.plain.txt nocolor
|
||||
|
||||
show: $(PONY).colored.txt
|
||||
@cat $(PONY).colored.txt
|
Loading…
Reference in a new issue