summaryrefslogtreecommitdiff
path: root/i18npool/CustomTarget_breakiterator.mk
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-07-27 14:11:08 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-07-27 14:37:00 +0100
commit82c25249e624cb54ca6d3293d1c3d0d8ebc208e0 (patch)
tree098de08481289c24e629a358f4dc523c245fc432 /i18npool/CustomTarget_breakiterator.mk
parent8eeddcdbb5baac2ee3378df38a198b0cdffa0495 (diff)
list dependencies explicitly
and make the list (by its makefile proxy) a dependency of the output so that removing an entry will trigger a rebuild of the target and incremental builds are possible Change-Id: I18c8d5ea2140e61b2ef78e256871402be94b79e2
Diffstat (limited to 'i18npool/CustomTarget_breakiterator.mk')
-rw-r--r--i18npool/CustomTarget_breakiterator.mk25
1 files changed, 20 insertions, 5 deletions
diff --git a/i18npool/CustomTarget_breakiterator.mk b/i18npool/CustomTarget_breakiterator.mk
index 3e0df9ee3b2f..621e8f1ffe8b 100644
--- a/i18npool/CustomTarget_breakiterator.mk
+++ b/i18npool/CustomTarget_breakiterator.mk
@@ -65,20 +65,35 @@ i18npool_GENCMNTARGET :=
i18npool_GENCMN := $(SYSTEM_GENCMN)
endif
-i18npool_BRKFILES := $(subst .txt,.brk,$(notdir \
- $(wildcard $(SRCDIR)/i18npool/source/breakiterator/data/*.txt)))
+i18npool_BRKTXTS := \
+ char_in.brk \
+ char.brk \
+ count_word_fi.brk \
+ count_word.brk \
+ dict_word_ca.brk \
+ dict_word_fi.brk \
+ dict_word_he.brk \
+ dict_word_hu.brk \
+ dict_word_nodash.brk \
+ dict_word_prepostdash.brk \
+ dict_word.brk \
+ edit_word_he.brk \
+ edit_word_hu.brk \
+ edit_word.brk \
+ line.brk \
+ sent.brk
# 'gencmn', 'genbrk' and 'genccode' are tools generated and delivered by icu project to process icu breakiterator rules.
# The output of gencmn generates warnings under Windows. We want to minimize the patches to external tools,
# so the output (OpenOffice_dat.c) is changed here to include a pragma to disable the warnings.
# Output of gencmn is redirected to OpenOffice_tmp.c with the -t switch.
-$(i18npool_BIDIR)/OpenOffice_dat.c : \
- $(patsubst %.brk,$(i18npool_BIDIR)/%_brk.c,$(i18npool_BRKFILES)) \
+$(i18npool_BIDIR)/OpenOffice_dat.c : $(SRCDIR)/i18npool/CustomTarget_breakiterator.mk \
+ $(patsubst %.brk,$(i18npool_BIDIR)/%_brk.c,$(i18npool_BRKTXTS)) \
$(i18npool_GENCMNTARGET)
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),CMN,1)
$(call gb_Helper_abbreviate_dirs,\
RESPONSEFILE=$(shell $(gb_MKTEMP)) && \
- $(foreach brk,$(i18npool_BRKFILES),echo '$(brk)' >> $${RESPONSEFILE} && ) \
+ $(foreach brk,$(i18npool_BRKTXTS),echo '$(brk)' >> $${RESPONSEFILE} && ) \
$(i18npool_GENCMN) -n OpenOffice -t tmp -S -d $(i18npool_BIDIR)/ 0 $${RESPONSEFILE} && \
rm -f $${RESPONSEFILE} && \
echo '#ifdef _MSC_VER' > $@ && \