use HTTPS for remote auth
[yukkurigames.com.git] / Makefile
1 #!/usr/bin/make -f
2
3 PNGCRUSH ?= pngcrush
4 PNGCRUSHFLAGS ?= -brute -blacken -reduce -q
5 CRUSH.png ?= $(PNGCRUSH) $(PNGCRUSHFLAGS)
6
7 favicon_%.png: favicon.svg
8 rsvg-convert -w $* -h $* $^ > $@
9 $(CRUSH.png) -ow $@
10
11 %.ico: %_48.png %_32.png %_16.png
12 convert $^ $@
13
14 ICONS := favicon.ico favicon_128.png favicon_192.png favicon_256.png
15
16 GIT_LOCAL := ~git/bare
17 GIT_REMOTE := https://git.yukkurigames.com
18
19 SUBPROJECTS := 123456789 choicecss heroik matrixcreatrix mlpccg webcart1000 labelle ogre
20
21 .PHONY: all clean superclean update
22
23 all: $(ICONS)
24
25 $(SUBPROJECTS):
26 git clone $(firstword $(wildcard $(GIT_LOCAL)/$@.git) $(GIT_REMOTE)/$@.git)
27 $(MAKE) $@.update
28
29 %.update: | %
30 cd $* && git pull
31 if [ -f $*/Makefile ]; then $(MAKE) -C $*; fi
32
33 update:
34 git pull
35 $(MAKE) all $(addsuffix .update,$(SUBPROJECTS))
36
37 clean:
38 $(RM) $(ICONS)
39
40 superclean: clean
41 $(RM) -r $(SUBPROJECTS)
42
43 serve:
44 python -m SimpleHTTPServer