Re-organize rendered directories
68
Makefile
|
@ -6,53 +6,58 @@ SCRIPT=$(MAKEFILE_DIR)render_parts.php
|
||||||
OUT_DIR=$(MAKEFILE_DIR)rendered
|
OUT_DIR=$(MAKEFILE_DIR)rendered
|
||||||
PONIES=$(notdir $(shell find $(PONY_DIR) -maxdepth 1 -mindepth 1 -type d ))
|
PONIES=$(notdir $(shell find $(PONY_DIR) -maxdepth 1 -mindepth 1 -type d ))
|
||||||
OUT_PLAIN=$(addprefix $(PONY_DIR)/,$(addsuffix .txt,$(PONIES)))
|
OUT_PLAIN=$(addprefix $(PONY_DIR)/,$(addsuffix .txt,$(PONIES)))
|
||||||
OUT_COLOR=$(addprefix $(OUT_DIR)/,$(addsuffix .colored.txt,$(PONIES)))
|
OUT_COLOR=$(addprefix $(OUT_DIR)/ansi/,$(addsuffix .colored.txt,$(PONIES)))
|
||||||
OUT_COLOR_IRC=$(addprefix $(OUT_DIR)/,$(addsuffix .irc.txt,$(PONIES)))
|
OUT_COLOR_IRC=$(addprefix $(OUT_DIR)/irc/,$(addsuffix .irc.txt,$(PONIES)))
|
||||||
OUT_SVG=$(addprefix $(OUT_DIR)/,$(addsuffix .svg,$(PONIES)))
|
OUT_SVG=$(addprefix $(OUT_DIR)/svg/,$(addsuffix .svg,$(PONIES)))
|
||||||
OUT_PNG=$(addprefix $(OUT_DIR)/,$(addsuffix .png,$(PONIES)))
|
OUT_PNG=$(addprefix $(OUT_DIR)/png/,$(addsuffix .png,$(PONIES)))
|
||||||
OUT_BASH=$(addprefix $(OUT_DIR)/,$(addsuffix .sh,$(PONIES)))
|
OUT_BASH=$(addprefix $(OUT_DIR)/sh/,$(addsuffix .sh,$(PONIES)))
|
||||||
OUT_ALL= $(OUT_COLOR) $(OUT_PLAIN) $(OUT_SVG) $(OUT_PNG) $(OUT_BASH) $(OUT_COLOR_IRC)
|
OUT_ALL= $(OUT_COLOR) $(OUT_PLAIN) $(OUT_SVG) $(OUT_PNG) $(OUT_BASH) $(OUT_COLOR_IRC)
|
||||||
OUT_DIRS=$(sort $(dir $(OUT_ALL)))
|
OUT_DIRS=$(sort $(dir $(OUT_ALL)))
|
||||||
find_deps=$(addprefix $(PONY_DIR)/,$(subst ;,\\\;,$(wildcard $(1)/*)))
|
find_deps=$(subst ;,\\\;,$(wildcard $(PONY_DIR)/$(1)/*))
|
||||||
|
|
||||||
.PHONY: show show_deps cleans list random
|
.PHONY: show show_deps cleans list random
|
||||||
|
|
||||||
all: $(OUT_ALL)
|
all: $(OUT_ALL)
|
||||||
|
|
||||||
define rule_template
|
define rule_template
|
||||||
$(OUT_DIR)/$(1).colored.txt: | $(dir $(OUT_DIR)/$(1))
|
$(OUT_DIR)/ansi/$(1).colored.txt: | $(dir $(OUT_DIR)/ansi/$(1))
|
||||||
$(OUT_DIR)/$(1).colored.txt: $(call find_deps, $(1))
|
$(OUT_DIR)/ansi/$(1).colored.txt: $(call find_deps, $(1))
|
||||||
$(OUT_DIR)/$(1).colored.txt: $(PONY_DIR)/$(1)
|
$(OUT_DIR)/ansi/$(1).colored.txt: $(PONY_DIR)/$(1)
|
||||||
$(SCRIPT) $(PONY_DIR)/$(1) >$(OUT_DIR)/$(1).colored.txt
|
$(SCRIPT) $(PONY_DIR)/$(1) >$(OUT_DIR)/ansi/$(1).colored.txt
|
||||||
|
|
||||||
$(PONY_DIR)/$(1).txt: $(call find_deps, $(1))
|
$(PONY_DIR)/$(1).txt: $(call find_deps, $(1))
|
||||||
$(PONY_DIR)/$(1).txt: $(PONY_DIR)/$(1)
|
$(PONY_DIR)/$(1).txt: $(PONY_DIR)/$(1)
|
||||||
$(SCRIPT) $(PONY_DIR)/$(1) >$(PONY_DIR)/$(1).txt nocolor
|
$(SCRIPT) $(PONY_DIR)/$(1) >$(PONY_DIR)/$(1).txt nocolor
|
||||||
|
|
||||||
$(OUT_DIR)/$(1).svg: | $(dir $(OUT_DIR)/$(1))
|
$(OUT_DIR)/svg/$(1).svg: | $(dir $(OUT_DIR)/svg/$(1))
|
||||||
$(OUT_DIR)/$(1).svg: $(call find_deps, $(1))
|
$(OUT_DIR)/svg/$(1).svg: $(call find_deps, $(1))
|
||||||
$(OUT_DIR)/$(1).svg: $(PONY_DIR)/$(1)
|
$(OUT_DIR)/svg/$(1).svg: $(PONY_DIR)/$(1)
|
||||||
$(SCRIPT) $(PONY_DIR)/$(1) >$(OUT_DIR)/$(1).svg svg
|
$(SCRIPT) $(PONY_DIR)/$(1) >$(OUT_DIR)/svg/$(1).svg svg
|
||||||
|
|
||||||
$(OUT_DIR)/$(1).sh: | $(dir $(OUT_DIR)/$(1))
|
$(OUT_DIR)/sh/$(1).sh: | $(dir $(OUT_DIR)/sh/$(1))
|
||||||
$(OUT_DIR)/$(1).sh: $(call find_deps, $(1))
|
$(OUT_DIR)/sh/$(1).sh: $(call find_deps, $(1))
|
||||||
$(OUT_DIR)/$(1).sh: $(PONY_DIR)/$(1)
|
$(OUT_DIR)/sh/$(1).sh: $(PONY_DIR)/$(1)
|
||||||
$(SCRIPT) $(PONY_DIR)/$(1) >$(OUT_DIR)/$(1).sh bash
|
$(SCRIPT) $(PONY_DIR)/$(1) >$(OUT_DIR)/sh/$(1).sh bash
|
||||||
chmod a+x $(OUT_DIR)/$(1).sh
|
chmod a+x $(OUT_DIR)/sh/$(1).sh
|
||||||
|
|
||||||
|
|
||||||
$(OUT_DIR)/$(1).irc.txt: | $(dir $(OUT_DIR)/$(1))
|
$(OUT_DIR)/irc/$(1).irc.txt: | $(dir $(OUT_DIR)/irc/$(1))
|
||||||
$(OUT_DIR)/$(1).irc.txt: $(call find_deps, $(1))
|
$(OUT_DIR)/irc/$(1).irc.txt: $(call find_deps, $(1))
|
||||||
$(OUT_DIR)/$(1).irc.txt: $(PONY_DIR)/$(1)
|
$(OUT_DIR)/irc/$(1).irc.txt: $(PONY_DIR)/$(1)
|
||||||
$(SCRIPT) $(PONY_DIR)/$(1) >$(OUT_DIR)/$(1).irc.txt irc
|
$(SCRIPT) $(PONY_DIR)/$(1) >$(OUT_DIR)/irc/$(1).irc.txt irc
|
||||||
|
|
||||||
|
$(OUT_DIR)/png/$(1).png : $(dir $(OUT_DIR)/png/$(1))
|
||||||
|
$(OUT_DIR)/png/$(1).png : $(OUT_DIR)/svg/$(1).svg
|
||||||
|
inkscape $(OUT_DIR)/svg/$(1).svg -e $(OUT_DIR)/png/$(1).png
|
||||||
|
|
||||||
.PHONY: $(1)
|
.PHONY: $(1)
|
||||||
$(1) : $(OUT_DIR)/$(1).colored.txt
|
$(1) : $(OUT_DIR)/ansi/$(1).colored.txt
|
||||||
$(1) : $(PONY_DIR)/$(1).txt
|
$(1) : $(PONY_DIR)/$(1).txt
|
||||||
$(1) : $(OUT_DIR)/$(1).svg
|
$(1) : $(OUT_DIR)/svg/$(1).svg
|
||||||
$(1) : $(OUT_DIR)/$(1).sh
|
$(1) : $(OUT_DIR)/sh/$(1).sh
|
||||||
$(1) : $(OUT_DIR)/$(1).irc.txt
|
$(1) : $(OUT_DIR)/irc/$(1).irc.txt
|
||||||
@cat $(OUT_DIR)/$(1).colored.txt
|
$(1) : $(OUT_DIR)/png/$(1).png
|
||||||
|
@cat $(OUT_DIR)/ansi/$(1).colored.txt
|
||||||
|
|
||||||
endef
|
endef
|
||||||
define dir_rule_template
|
define dir_rule_template
|
||||||
|
@ -60,14 +65,11 @@ $(1) :
|
||||||
mkdir -p $(1)
|
mkdir -p $(1)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
%.png : %.svg
|
|
||||||
inkscape $*.svg -e $*.png
|
|
||||||
|
|
||||||
$(foreach pony,$(PONIES),$(eval $(call rule_template,$(pony))))
|
$(foreach pony,$(PONIES),$(eval $(call rule_template,$(pony))))
|
||||||
$(foreach directory,$(OUT_DIRS),$(eval $(call dir_rule_template,$(directory))))
|
$(foreach directory,$(OUT_DIRS),$(eval $(call dir_rule_template,$(directory))))
|
||||||
|
|
||||||
show: $(OUT_DIR)/$(PONY).colored.txt
|
show: $(OUT_DIR)/ansi/$(PONY).colored.txt
|
||||||
@cat $(OUT_DIR)/$(PONY).colored.txt
|
@cat $(OUT_DIR)/ansi/$(PONY).colored.txt
|
||||||
|
|
||||||
show_deps:
|
show_deps:
|
||||||
@$(foreach d,$(call find_deps,$(PONY)), echo $(d);)
|
@$(foreach d,$(call find_deps,$(PONY)), echo $(d);)
|
||||||
|
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
BIN
rendered/png/vinyl-scratch-glasses.png
Normal file
After Width: | Height: | Size: 19 KiB |
BIN
rendered/png/vinyl-scratch-noglasses.png
Normal file
After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 20 KiB |