X-Git-Url: https://git.yukkurigames.com/?p=yukkurigames.com.git;a=blobdiff_plain;f=Makefile;h=ef9a63985abdbecb5b040321563abf63fab5a72b;hp=de3b884379c727bc14c9a2b5d03fe86049056226;hb=468eaf0529a089e1f1a81fe44d62ab83d169c319;hpb=501bed08fe74abe733f47554c66df6b422796169 diff --git a/Makefile b/Makefile index de3b884..ef9a639 100644 --- a/Makefile +++ b/Makefile @@ -13,8 +13,29 @@ favicon_%.png: favicon.svg 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 ogre + +.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)