xref: /trunk/main/sw/uiconfig/layout/layout.mk (revision cdf0e10c)
1# TODO: move to solenv/inc
2# copies: sw/uiconfig/layout svx/uiconfig/layout
3
4TRALAY=tralay
5XML_DEST=$(DLLDEST)
6XML_LANGS=$(alllangiso)
7
8ALL_XMLS=$(foreach,i,$(XML_FILES) $(XML_DEST)/$i) $(foreach,i,$(XML_LANGS) $(foreach,j,$(XML_FILES) $(XML_DEST)/$i/$j))
9
10# Must remove the -j (no duplicate base file names) flag
11ZIPUPDATE=-u
12XML_ZIP = $(PRJNAME)-layout
13
14ALLTAR: $(XML_ZIP)
15
16$(XML_ZIP): $(ALL_XMLS)
17
18ZIP1DIR=$(XML_DEST)
19ZIP1TARGET=$(XML_ZIP)
20ZIP1LIST=$(ALL_XMLS:s@$(XML_DEST)/@@)
21
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 ") $<
26
27$(XML_DEST)/%.xml: %.xml
28	-$(MKDIR) $(@:d)
29	$(COPY) $< $@
30
31# Don't want to overwrite filled localize.sdf with empty template
32template.sdf:
33	$(foreach,i,$(XML_FILES) $(TRALAY) -l en-US $i) > $@
34