diff options
author | Jonas Smedegaard <dr@jones.dk> | 2007-11-01 18:55:03 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2007-11-01 18:55:03 +0100 |
commit | 3def5265510535afca772005158d07c829d36cd8 (patch) | |
tree | abe561a52aedc35fe63581b91f77fc19300c3c39 /Makefile | |
parent | 90ac3ddb96fa6516388bc5f6f04a4acd228d28e0 (diff) |
Add support for dummy content repositories.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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) |