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