summaryrefslogtreecommitdiff
path: root/make/rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'make/rules.mk')
-rw-r--r--make/rules.mk3
1 files changed, 1 insertions, 2 deletions
diff --git a/make/rules.mk b/make/rules.mk
index 2dcfc96..973af61 100644
--- a/make/rules.mk
+++ b/make/rules.mk
@@ -21,14 +21,13 @@ ifneq ($(2),)
$(1): $$(subst module,$(3),$$(masterdir))
endif
-$(1): action = $$(if $(wildcard $(1)/.git),update,init)
$(1): origin = $$(if $(2),$(3),$$(subst MODULE,$(3),$$($(4)_ORIGIN)))
$(1): master = $$(subst -LOCALE,$(2:%=-$(2)),$$($(4)_BRANCH))
$(1): branches = $$(if $(2),,$$(filter-out $$(master),$$($(3)_BRANCHES)))
$(1):
@[ -d "$$(dir $$@)" ] || ( echo mkdir -p "$$(dir $$@)" && mkdir -p "$$(dir $$@)" )
@[ -d "$$@" ] || ( echo git clone "$$(origin)" "$$@" && git clone -o "$(4)" "$$(origin)" "$$@" )
- @$(MAKE) -f "$$(CURDIR)/make/git.mk" -C "$$@" master="$$(master)" branches="$$(branches)" origin="$(4)" "$$(action)"
+ @$(MAKE) -f "$$(CURDIR)/make/git.mk" -C "$$@" master="$$(master)" branches="$$(branches)" origin="$(4)" update
# WARNING: this may wipe unrelated files too!
ultraclean::