summaryrefslogtreecommitdiff
path: root/helpcontent2/source/auxiliary
diff options
context:
space:
mode:
authorAndras Timar <atimar@novell.com>2011-04-28 22:40:25 +0200
committerAndras Timar <atimar@novell.com>2011-04-28 22:40:25 +0200
commit05e34ed9156b0d64b1c3edba7979ce1f5f121d6c (patch)
tree8f633c0c4a594304d8d34462dbd8fab88058cf86 /helpcontent2/source/auxiliary
parenta4531411eb96c05965a1fcd1c47493c61ae9e51c (diff)
help: build only those languages which have localized helpcontent2
Diffstat (limited to 'helpcontent2/source/auxiliary')
-rw-r--r--helpcontent2/source/auxiliary/makefile.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/helpcontent2/source/auxiliary/makefile.mk b/helpcontent2/source/auxiliary/makefile.mk
index 48b02b5d0e..c617b6f597 100644
--- a/helpcontent2/source/auxiliary/makefile.mk
+++ b/helpcontent2/source/auxiliary/makefile.mk
@@ -46,7 +46,7 @@ TREEFILES = \
# --- Targets ------------------------------------------------------
.INCLUDE : target.mk
-.EXPORT : LOCALIZESDF LOCALIZATION_FOUND TRYSDF
+.EXPORT : LOCALIZESDF LOCALIZATION_FOUND TRYSDF L10N_MODULE
ALLTAR : aux_dirs $(COMMONMISC)$/treefiles.done $(COMMONBIN)$/helpimg.ilst
@@ -54,8 +54,10 @@ ALLTAR : aux_dirs $(COMMONMISC)$/treefiles.done $(COMMONBIN)$/helpimg.ilst
t_aux_langdirs:=$(shell @find ./ -name "*.cfg" | sed "s/\.\/\///" | sed "s/\.\///" )
aux_langdirs:=$(uniq $(t_aux_langdirs:d:d))
+help_exist:=$(shell @find $(L10N_MODULE)/source/ -type d -name "helpcontent2" | sed -e "s|/helpcontent2||" -e "s|^.*/||" ) en-US
-aux_alllangiso:=$(foreach,i,$(alllangiso) $(foreach,j,$(aux_langdirs) $(eq,$i,$j $i $(NULL))))
+aux_alllangiso_all:=$(foreach,i,$(alllangiso) $(foreach,j,$(aux_langdirs) $(eq,$i,$j $i $(NULL))))
+aux_alllangiso:=$(foreach,i,$(aux_alllangiso_all) $(foreach,j,$(help_exist) $(eq,$i,$j $i $(NULL))))
WITH_LANG!:=$(aux_alllangiso)
@@ -92,6 +94,7 @@ $(LOCTREEFILES) : $(COMMONMISC)/unpack.done
aux_dirs .PHONY :
echo aux_langdirs:=$(aux_langdirs) > $(LOCAL_COMMON_OUT)/inc$/aux_langs.mk
+ echo help_exist:=$(help_exist) > $(LOCAL_COMMON_OUT)/inc$/help_exist.mk
$(COMMONBIN)$/helpimg.ilst .PHONY:
-$(RM) $@