summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2007-10-22 02:13:51 +0200
committerJonas Smedegaard <dr@jones.dk>2007-10-22 02:13:51 +0200
commit55832f6d3d7134926b35cc7ab3e5ef56e8c00a44 (patch)
tree55b16d907675b6624fc814792c774d4910a61877
parent320b20776bcddffc62ee3d01114826c2d43da5dc (diff)
Localize per soure (sources may contain different l10n).
-rw-r--r--Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index c8d525e..cc0e7c2 100644
--- a/Makefile
+++ b/Makefile
@@ -3,10 +3,9 @@ sources = ikiwiki
origin_ikiwiki = http://source.jones.dk/ikiwiki_$(underlay).git
underlays_ikiwiki = basewiki smiley templates
master_ikiwiki = master$(locale:%=-$(locale))
+locales_ikiwiki = da
-locales = da
-
-underlays_l10n = $(foreach source, $(sources), $(foreach locale, $(locales), $(patsubst %,%_l10n/$(locale),$(underlays_$(source)))))
+underlays_l10n = $(foreach source, $(sources), $(foreach locale, $(locales_$(source)), $(patsubst %,%_l10n/$(locale),$(underlays_$(source)))))
underlays = $(foreach source, $(sources), $(underlays_$(source))) $(underlays_l10n)
source_of_underlay = $(firstword $(foreach source, $(sources), $(if $(filter $(underlay),$(underlays_$(source))),$(source))))