2013-11-08 17:07:35 +01:00
|
|
|
PONIES= Main6/applejack-nohat \
|
|
|
|
Main6/fluttershy \
|
|
|
|
Main6/pinkie-pie \
|
|
|
|
Main6/rainbow-dash \
|
|
|
|
Main6/rarity \
|
|
|
|
Main6/twilight-alicorn \
|
|
|
|
Main6/twilight-unicorn \
|
|
|
|
Other/derpy \
|
|
|
|
Other/trixie-hat
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SCRIPT=$(PWD)/render_parts.php
|
|
|
|
OUT_PLAIN=$(addsuffix .plain.txt,$(PONIES))
|
|
|
|
OUT_COLOR=$(addsuffix .colored.txt,$(PONIES))
|
|
|
|
find_deps=$(subst ;,\;,$(wildcard $(1)/*))
|
|
|
|
|
2013-11-08 17:36:09 +01:00
|
|
|
.PHONY: show
|
|
|
|
|
2013-11-08 17:07:35 +01:00
|
|
|
all: $(OUT_COLOR) $(OUT_PLAIN)
|
|
|
|
|
|
|
|
|
2013-11-08 17:36:09 +01:00
|
|
|
# %.colored.txt : $(SCRIPT)
|
|
|
|
# %.colored.txt : $(PWD)/Makefile
|
2013-11-08 17:07:35 +01:00
|
|
|
%.colored.txt : $(call find_deps, $*)
|
|
|
|
$(SCRIPT) $* >$*.colored.txt
|
|
|
|
|
2013-11-08 17:36:09 +01:00
|
|
|
# %.plain.txt : $(SCRIPT)
|
|
|
|
# %.plain.txt : $(PWD)/Makefile
|
2013-11-08 17:07:35 +01:00
|
|
|
%.plain.txt : $(call find_deps, $*)
|
2013-11-08 17:36:09 +01:00
|
|
|
$(SCRIPT) $* >$*.plain.txt nocolor
|
|
|
|
|
|
|
|
show: $(PONY).colored.txt
|
|
|
|
@cat $(PONY).colored.txt
|