aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-02-10 10:47:46 +0100
committerStephan Bergmann <sbergman@redhat.com>2012-02-10 10:47:46 +0100
commit0b77295aed0a723cb2c347730a14be231622a118 (patch)
tree2ccc64b84ed3043740a17d3cd960901b6719fa68
parent1550950ffee70f42589a751adb36bc286b1149e6 (diff)
Adapted to change "localize" tool; plus made some dependencies explicit
-rw-r--r--translations/makefile.mk15
1 files changed, 7 insertions, 8 deletions
diff --git a/translations/makefile.mk b/translations/makefile.mk
index 95353286041..07784cf4b3b 100644
--- a/translations/makefile.mk
+++ b/translations/makefile.mk
@@ -68,23 +68,22 @@ PYTHONCMD=$(WRAPCMD) $(PYTHON)
all_languages:=$(WITH_LANG:s/en-US//)
.ENDIF # "$(WITH_LANG)" == "ALL"
-$(MISC)/sdf-template/en-US.sdf :
- -$(MKDIRHIER) $(MISC)/sdf-template
- -$(MKDIRHIER) $(MISC)/sdf-l10n
-.IF "$(OS_FOR_BUILD)"=="WNT"
- $(SRC_ROOT)/solenv/bin/localize -f $(shell cygpath -m $(SRC_ROOT)/$(PRJNAME)/$@)
-.ELSE
- $(SRC_ROOT)/solenv/bin/localize -f $(SRC_ROOT)/$(PRJNAME)/$@
-.ENDIF # "$(OS)" == "WNT"
+$(MISC)/sdf-template/en-US.sdf .ERRREMOVE : $(SOLARBINDIR)/cfgex \
+ $(SOLARBINDIR)/helpex $(SOLARBINDIR)/localize $(SOLARBINDIR)/propex \
+ $(SOLARBINDIR)/transex3 $(SOLARBINDIR)/ulfex $(SOLARBINDIR)/xrmex
+ $(MKDIRHIER) $(@:d)
+ $(LOCALIZE) $(SRC_ROOT) $@
pot : $(MISC)/sdf-template/en-US.sdf
$(OO2PO) -P -i $< -o $(MISC)/pot
$(PERL) $(SOLARBINDIR)/addkeyid2pot.pl $(MISC)/pot
$(MISC)/sdf-l10n/%.sdf : $(MISC)/sdf-template/en-US.sdf
+ $(MKDIRHIER) $(@:d)
$(PYTHONCMD) $(SOLARBINDIR)/po2lo --skipsource -i $(PRJ)/source/$(@:b) -t $(MISC)/sdf-template/en-US.sdf -o $@ -l $(@:b)
$(MISC)/sdf-l10n/qtz.sdf : $(MISC)/sdf-template/en-US.sdf
+ $(MKDIRHIER) $(@:d)
$(PERL) $(SOLARBINDIR)/keyidGen.pl $< $@
$(MISC)/merge.done : $(foreach,i,$(all_languages) $(MISC)/sdf-l10n/$i.sdf) $(MISC)/sdf-l10n/qtz.sdf