From 24c48588d725560c80de5b13d6a78bfc62ab1482 Mon Sep 17 00:00:00 2001 From: Joe Wreschnig Date: Fri, 19 Sep 2014 22:11:25 +0200 Subject: [PATCH] More deployment managed via Make. --- .gitignore | 7 ++++++- Makefile | 19 ++++++++++++++++++- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index deb8f69..1cfb484 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,9 @@ .DS_Store favicon*.png favicon.ico - +123456789 +choicecss +heroik +matrixcreatrix +mlpccg +webcart1000 diff --git a/Makefile b/Makefile index de3b884..d350205 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,24 @@ 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 + +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) -- 2.30.2