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

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

View file

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

View file

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