mirror of
https://gitlab.com/mattia.basaglia/ASCII-Pony.git
synced 2025-03-31 00:07:45 +02:00
Make show target
This commit is contained in:
parent
1cdbcdf91a
commit
e70ee19ebc
1 changed files with 10 additions and 5 deletions
13
Makefile
13
Makefile
|
@ -15,15 +15,20 @@ OUT_PLAIN=$(addsuffix .plain.txt,$(PONIES))
|
||||||
OUT_COLOR=$(addsuffix .colored.txt,$(PONIES))
|
OUT_COLOR=$(addsuffix .colored.txt,$(PONIES))
|
||||||
find_deps=$(subst ;,\;,$(wildcard $(1)/*))
|
find_deps=$(subst ;,\;,$(wildcard $(1)/*))
|
||||||
|
|
||||||
|
.PHONY: show
|
||||||
|
|
||||||
all: $(OUT_COLOR) $(OUT_PLAIN)
|
all: $(OUT_COLOR) $(OUT_PLAIN)
|
||||||
|
|
||||||
|
|
||||||
%.colored.txt : $(SCRIPT)
|
# %.colored.txt : $(SCRIPT)
|
||||||
%.colored.txt : $(PWD)/Makefile
|
# %.colored.txt : $(PWD)/Makefile
|
||||||
%.colored.txt : $(call find_deps, $*)
|
%.colored.txt : $(call find_deps, $*)
|
||||||
$(SCRIPT) $* >$*.colored.txt
|
$(SCRIPT) $* >$*.colored.txt
|
||||||
|
|
||||||
%.plain.txt : $(SCRIPT)
|
# %.plain.txt : $(SCRIPT)
|
||||||
%.plain.txt : $(PWD)/Makefile
|
# %.plain.txt : $(PWD)/Makefile
|
||||||
%.plain.txt : $(call find_deps, $*)
|
%.plain.txt : $(call find_deps, $*)
|
||||||
$(SCRIPT) $* >$*.plain.txt nocolor
|
$(SCRIPT) $* >$*.plain.txt nocolor
|
||||||
|
|
||||||
|
show: $(PONY).colored.txt
|
||||||
|
@cat $(PONY).colored.txt
|
Loading…
Add table
Reference in a new issue