summaryrefslogtreecommitdiff
path: root/svx/uiconfig/layout/layout.mk
blob: f6bea876d89827f471aa3ddd3148d4ba20cdbea8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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) > $@