X-Git-Url: https://git.yukkurigames.com/?p=yukkurigames.com.git;a=blobdiff_plain;f=Makefile;h=cab91ecc0f6220cd91af481b7eefa69c57779359;hp=8c3568b8927e399759b003406d9ba95954d09d43;hb=3046b3175c91c3f8f94f4f2a90c427129e1ddc6d;hpb=0deb86d4b584652d3abe15f6db130c199eebedb7 diff --git a/Makefile b/Makefile index 8c3568b..cab91ec 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,41 @@ #!/usr/bin/make -f +PNGCRUSH ?= pngcrush +PNGCRUSHFLAGS ?= -brute -blacken -reduce -q +CRUSH.png ?= $(PNGCRUSH) $(PNGCRUSHFLAGS) + favicon_%.png: favicon.svg rsvg-convert -w $* -h $* $^ > $@ + $(CRUSH.png) -ow $@ -%.ico: %_128.png %_64.png %_48.png %_32.png %_16.png +%.ico: %_48.png %_32.png %_16.png convert $^ $@ ICONS := favicon.ico favicon_128.png favicon_192.png favicon_256.png -all: $(ICONS) +GIT_LOCAL := ~git/bare +GIT_REMOTE := http://git.yukkurigames.com + +SUBPROJECTS := 123456789 choicecss heroik matrixcreatrix mlpccg webcart1000 labelle + +.PHONY: all clean superclean update + +all: $(ICONS) + +$(SUBPROJECTS): + git clone $(firstword $(wildcard $(GIT_LOCAL)/$@.git) $(GIT_REMOTE)/$@.git) + $(MAKE) $@.update + +%.update: | % + cd $* && git pull + if [ -f $*/Makefile ]; then $(MAKE) -C $*; fi + +update: + git pull + $(MAKE) all $(addsuffix .update,$(SUBPROJECTS)) clean: $(RM) $(ICONS) +superclean: clean + $(RM) -r $(SUBPROJECTS)