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