merge the formfield patch from ooo-build
[ooovba.git] / svx / uiconfig / layout / layout.mk
blobf6bea876d89827f471aa3ddd3148d4ba20cdbea8
1 # TODO: move to solenv/inc
2 # copies: sw/uiconfig/layout svx/uiconfig/layout
4 TRALAY=tralay
5 XML_DEST=$(DLLDEST)
6 XML_LANGS=$(alllangiso)
8 ALL_XMLS=$(foreach,i,$(XML_FILES) $(XML_DEST)/$i) $(foreach,i,$(XML_LANGS) $(foreach,j,$(XML_FILES) $(XML_DEST)/$i/$j))
10 # Must remove the -j (no duplicate base file names) flag
11 ZIPUPDATE=-u
12 XML_ZIP = $(PRJNAME)-layout
14 ALLTAR: $(XML_ZIP)
16 $(XML_ZIP): $(ALL_XMLS)
18 ZIP1DIR=$(XML_DEST)
19 ZIP1TARGET=$(XML_ZIP)
20 ZIP1LIST=$(ALL_XMLS:s@$(XML_DEST)/@@)
22 $(foreach,i,$(XML_LANGS) $(XML_DEST)/$i/%.xml): %.xml
23 -$(MKDIR) $(@:d)
24 @echo $(foreach,i,$(XML_LANGS) $(XML_DEST)/$i/%.xml): %.xml
25 $(TRALAY) -m localize.sdf -o $(XML_DEST) -l $(XML_LANGS:f:t" -l ") $<
27 $(XML_DEST)/%.xml: %.xml
28 -$(MKDIR) $(@:d)
29 $(COPY) $< $@
31 # Don't want to overwrite filled localize.sdf with empty template
32 template.sdf:
33 $(foreach,i,$(XML_FILES) $(TRALAY) -l en-US $i) > $@