INTEGRATION: CWS layoutdialogs (1.1.2); FILE ADDED
2008/03/31 15:01:53 jcn 1.1.2.1: Factor out layout.mk.
This commit is contained in:
parent
a1d5e456e7
commit
4d5708e5e6
1 changed files with 33 additions and 0 deletions
33
svx/uiconfig/layout/layout.mk
Normal file
33
svx/uiconfig/layout/layout.mk
Normal file
|
@ -0,0 +1,33 @@
|
|||
# TODO: move to solenv/inc
|
||||
# copies: sw/uiconfig/layout svx/uiconfig/layout
|
||||
|
||||
TRALAY=tralay
|
||||
XML_DEST=$(DLLDEST)
|
||||
XML_LANGS=$(alllangiso)
|
||||
|
||||
ALL_XMLS=$(foreach,i,$(XML_FILES) $(XML_DEST)/$i) $(foreach,i,$(XML_LANGS) $(foreach,j,$(XML_FILES) $(XML_DEST)/$i/$j))
|
||||
|
||||
# Must remove the -j (no duplicate base file names) flag
|
||||
ZIPUPDATE=-u
|
||||
XML_ZIP = $(PRJNAME)-layout
|
||||
|
||||
ALLTAR: $(XML_ZIP)
|
||||
|
||||
$(XML_ZIP): $(ALL_XMLS)
|
||||
|
||||
ZIP1DIR=$(XML_DEST)
|
||||
ZIP1TARGET=$(XML_ZIP)
|
||||
ZIP1LIST=$(ALL_XMLS:s@$(XML_DEST)/@@)
|
||||
|
||||
$(foreach,i,$(XML_LANGS) $(XML_DEST)/$i/%.xml): %.xml
|
||||
-$(MKDIR) $(@:d)
|
||||
@echo $(foreach,i,$(XML_LANGS) $(XML_DEST)/$i/%.xml): %.xml
|
||||
$(TRALAY) -m localize.sdf -o $(XML_DEST) -l $(XML_LANGS:f:t" -l ") $<
|
||||
|
||||
$(XML_DEST)/%.xml: %.xml
|
||||
-$(MKDIR) $(@:d)
|
||||
$(COPY) $< $@
|
||||
|
||||
# Don't want to overwrite filled localize.sdf with empty template
|
||||
template.sdf:
|
||||
$(foreach,i,$(XML_FILES) $(TRALAY) -l en-US $i) > $@
|
Loading…
Reference in a new issue