More deployment managed via Make.
authorJoe Wreschnig <joe.wreschnig@gmail.com>
Fri, 19 Sep 2014 20:11:25 +0000 (22:11 +0200)
committerJoe Wreschnig <joe.wreschnig@gmail.com>
Fri, 19 Sep 2014 20:11:25 +0000 (22:11 +0200)
.gitignore
Makefile

index deb8f69e5002ca7c4178f8baa9424ef3716fdfc6..1cfb48443259921e1b023f084330a88c29626915 100644 (file)
@@ -1,4 +1,9 @@
 .DS_Store
 favicon*.png
 favicon.ico
-
+123456789
+choicecss
+heroik
+matrixcreatrix
+mlpccg
+webcart1000
index de3b884379c727bc14c9a2b5d03fe86049056226..d350205dd1eff74171652c638d3fef630cd24b3d 100644 (file)
--- 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)