summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2007-11-01 18:55:03 +0100
committerJonas Smedegaard <dr@jones.dk>2007-11-01 18:55:03 +0100
commit3def5265510535afca772005158d07c829d36cd8 (patch)
treeabe561a52aedc35fe63581b91f77fc19300c3c39 /Makefile
parent90ac3ddb96fa6516388bc5f6f04a4acd228d28e0 (diff)
Add support for dummy content repositories.
Diffstat (limited to 'Makefile')
-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)