Fix twilight eye + Makefile hax

This commit is contained in:
Mattia Basaglia 2013-11-08 18:42:21 +01:00
parent e70ee19ebc
commit cfc5affece
10 changed files with 48 additions and 48 deletions

View file

@ -4,7 +4,7 @@
( / \_ `.' / `. ( / \_ `.' / `.
| | ) `;. ,' / \ \ | | ) `;. ,' / \ \
( '. /___/_j_ / ) | ) ( '. /___/_j_ / ) | )
'\ / __\ ``::'/__' | '\ / __\``::'/__' |
|\_ ( / .-| |-.| `-,| |\_ ( / .-| |-.| `-,|
.| ( \ ( (WW| \W)j ' .| ( \ ( (WW| \W)j '
..-----, .|' ', \_\_`_| ``-. ..-----, .|' ', \_\_`_| ``-.

View file

@ -4,9 +4,9 @@
( / \_ `.' / `. ( / \_ `.' / `.
| | ) `;. ,' / \ \ | | ) `;. ,' / \ \
( '. /___/_j_ / ) | ) ( '. /___/_j_ / ) | )
'\ / __\ ``::'/__' | '\ / __\``::'/__' |
|\_ ( / .-| |-.| `-,| |\_ ( / .-| |-.| `-,|
.| ( \ ( (WW| \W)j ' .| ( \ ( (WW| \) j '
..-----, .|' ', \_\_`_| ``-. ..-----, .|' ', \_\_`_| ``-.
.-` ..::. `, |, ._:7 \__/ .-` ..::. `, |, ._:7 \__/
,' .:::'':::. \ |:'. \ ______.-' ,' .:::'':::. \ |:'. \ ______.-'

View file

@ -1,13 +1,13 @@
xfffxxxxx c
__ _____ _ __ _____ _
/ \__..--"" ;-.",'/ / \__..--"" ;-.",'/
( / \_ `.' / `. ( / \_ `.' / `.
| | ) `;. ,' / \ \ | | ) `;. ,' / \ \
( '. /___/_j_ / ) | ) ( '. /___/_j_ / ) | )
'\ / __\ ``::'/__' | '\ / __ \``::'/__' |
|\_ ( / .-| |-.| `-,| |\_ ( / .- | |-.| `-,|
.| ( \ ( (WW| \W)j ' .| ( \ ((WW | \W)j '
..-----, .|' ', \_\_`_| ``-. ..-----, .|' ', \_ _ _| ``-.
.-` ..::. `, |, ._:7 \__/ .-` ..::. `, |, ._:7 \__/
,' .:::'':::. \ |:'. \ ______.-' ,' .:::'':::. \ |:'. \ ______.-'
.' .::' ':: :._______| \ \ `"7 / .' .::' ':: :._______| \ \ `"7 /

View file

@ -13,22 +13,22 @@ PONIES= Main6/applejack-nohat \
SCRIPT=$(PWD)/render_parts.php SCRIPT=$(PWD)/render_parts.php
OUT_PLAIN=$(addsuffix .plain.txt,$(PONIES)) 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)
define rule_template
$(1).colored.txt: $(call find_deps, $(1))
$(SCRIPT) $(1) >$(1).colored.txt
# %.colored.txt : $(SCRIPT) $(1).plain.txt: $(call find_deps, $(1))
# %.colored.txt : $(PWD)/Makefile $(SCRIPT) $(1) >$(1).plain.txt nocolor
%.colored.txt : $(call find_deps, $*) endef
$(SCRIPT) $* >$*.colored.txt
# %.plain.txt : $(SCRIPT) $(foreach pony,$(PONIES),$(eval $(call rule_template,$(pony))))
# %.plain.txt : $(PWD)/Makefile
%.plain.txt : $(call find_deps, $*)
$(SCRIPT) $* >$*.plain.txt nocolor
show: $(PONY).colored.txt show: $(PONY).colored.txt
@cat $(PONY).colored.txt @cat $(PONY).colored.txt
show_deps:
@$(foreach d,$(call find_deps,$(PONY)), echo $(d);)