Permalink
Browse files

improve update

  • Loading branch information...
1 parent cac2d2c commit 68407411a2b841c0b484a666a4536c23eb781045 @qqshfox committed Mar 3, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 Makefile
View
@@ -2,6 +2,7 @@ dirs := $(shell find . -maxdepth 1 -type d)
dirs := $(basename $(patsubst ./%,%,$(dirs)))
SUBDIRS := $(dirs)
+update_dirs := $(addprefix _update_,$(SUBDIRS))
install_dirs := $(addprefix _install_,$(SUBDIRS))
clean_dirs := $(addprefix _clean_,$(SUBDIRS))
@@ -13,7 +14,10 @@ submodules:
git submodule sync
git submodule update --init --recursive
-update: submodules
+$(update_dirs):
+ $(MAKE) -C $(patsubst _update_%,%,$@) update
+
+update: submodules $(update_dirs)
$(SUBDIRS):
$(MAKE) -C $@

0 comments on commit 6840741

Please sign in to comment.