xref: /trunk/main/sw/uiconfig/layout/layout.mk (revision cdf0e10c)
1*cdf0e10cSrcweir# TODO: move to solenv/inc
2*cdf0e10cSrcweir# copies: sw/uiconfig/layout svx/uiconfig/layout
3*cdf0e10cSrcweir
4*cdf0e10cSrcweirTRALAY=tralay
5*cdf0e10cSrcweirXML_DEST=$(DLLDEST)
6*cdf0e10cSrcweirXML_LANGS=$(alllangiso)
7*cdf0e10cSrcweir
8*cdf0e10cSrcweirALL_XMLS=$(foreach,i,$(XML_FILES) $(XML_DEST)/$i) $(foreach,i,$(XML_LANGS) $(foreach,j,$(XML_FILES) $(XML_DEST)/$i/$j))
9*cdf0e10cSrcweir
10*cdf0e10cSrcweir# Must remove the -j (no duplicate base file names) flag
11*cdf0e10cSrcweirZIPUPDATE=-u
12*cdf0e10cSrcweirXML_ZIP = $(PRJNAME)-layout
13*cdf0e10cSrcweir
14*cdf0e10cSrcweirALLTAR: $(XML_ZIP)
15*cdf0e10cSrcweir
16*cdf0e10cSrcweir$(XML_ZIP): $(ALL_XMLS)
17*cdf0e10cSrcweir
18*cdf0e10cSrcweirZIP1DIR=$(XML_DEST)
19*cdf0e10cSrcweirZIP1TARGET=$(XML_ZIP)
20*cdf0e10cSrcweirZIP1LIST=$(ALL_XMLS:s@$(XML_DEST)/@@)
21*cdf0e10cSrcweir
22*cdf0e10cSrcweir$(foreach,i,$(XML_LANGS) $(XML_DEST)/$i/%.xml): %.xml
23*cdf0e10cSrcweir	-$(MKDIR) $(@:d)
24*cdf0e10cSrcweir	@echo $(foreach,i,$(XML_LANGS) $(XML_DEST)/$i/%.xml): %.xml
25*cdf0e10cSrcweir	$(TRALAY) -m localize.sdf -o $(XML_DEST) -l $(XML_LANGS:f:t" -l ") $<
26*cdf0e10cSrcweir
27*cdf0e10cSrcweir$(XML_DEST)/%.xml: %.xml
28*cdf0e10cSrcweir	-$(MKDIR) $(@:d)
29*cdf0e10cSrcweir	$(COPY) $< $@
30*cdf0e10cSrcweir
31*cdf0e10cSrcweir# Don't want to overwrite filled localize.sdf with empty template
32*cdf0e10cSrcweirtemplate.sdf:
33*cdf0e10cSrcweir	$(foreach,i,$(XML_FILES) $(TRALAY) -l en-US $i) > $@
34