summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index cc0e7c2..9775eb1 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,8 @@ underlays_ikiwiki = basewiki smiley templates
master_ikiwiki = master$(locale:%=-$(locale))
locales_ikiwiki = da
+#dummies = content_dummy
+
underlays_l10n = $(foreach source, $(sources), $(foreach locale, $(locales_$(source)), $(patsubst %,%_l10n/$(locale),$(underlays_$(source)))))
underlays = $(foreach source, $(sources), $(underlays_$(source))) $(underlays_l10n)
@@ -12,7 +14,7 @@ source_of_underlay = $(firstword $(foreach source, $(sources), $(if $(filter $(u
origin = $(origin_$(source_of_underlay))
master = $(master_$(source_of_underlay))
-all: $(underlays)
+all: $(underlays) $(dummies)
$(underlays): locale=$(if $(filter l10n/,$(lastword $(subst _, ,$(dir $@)))),$(notdir $@))
$(underlays): underlay=$(@:%_l10n/$(locale)=%)
@@ -22,7 +24,11 @@ $(underlays):
cd $@ && git remote add -f -t $(master) -m $(master) origin $(origin)
cd $@ && git merge origin
+$(dummies):
+ mkdir -p $@
+
# WARNING: this may wipe unrelated files too!
ultraclean:
rm -rf $(underlays)
rm -rf $(dir $(underlays_l10n))
+ rm -rf $(dummies)