1 --- solenv/inc/layout.mk
2 +++ solenv/inc/layout.mk
3 @@ -1,32 +1,29 @@ TRALAY=tralay
4 -TRALAY=$(AUGMENT_LIBRARY_PATH) tralay
5 +TRALAY=$(AUGMENT_LIBRARY_PATH) $(SOLARBINDIR)$/tralay
7 XML_LANGS=$(alllangiso)
9 -ALL_XMLS=$(foreach,i,$(XML_FILES) "$(XML_DEST)/$i") $(foreach,i,$(XML_LANGS) $(foreach,j,$(XML_FILES) "$(XML_DEST)/$i/$j"))
10 +ALL_XMLS=$(foreach,i,$(XML_FILES) $(XML_DEST)$/$i) $(foreach,i,$(XML_LANGS) $(foreach,j,$(XML_FILES) $(XML_DEST)$/$i$/$j))
11 +XML_DEPS=$(foreach,i,$(XML_FILES) $(MISC)$/$i.dep)
13 # Must remove the -j (no duplicate base file names) flag
15 XML_ZIP = $(PRJNAME)-layout
17 -ALLTAR: localize.sdf $(XML_ZIP)
19 -$(XML_ZIP): $(ALL_XMLS)
20 +ALLTAR .SEQUENTIAL: localize.sdf ALL_XML_DEPS
22 +ALL_XML_DEPS: $(XML_DEPS)
26 ZIP1LIST=$(ALL_XMLS:s@$(XML_DEST)/@@)
27 +ZIP1DEPS=localize.sdf $(XML_DEPS)
29 -$(foreach,i,$(XML_LANGS) $(XML_DEST)/$i/%.xml): %.xml
31 - @echo $(foreach,i,$(XML_LANGS) $(XML_DEST)/$i/%.xml): %.xml
32 +$(MISC)$/%.xml.dep: %.xml
33 + -$(MKDIR) "$(XML_DEST)"
34 + cp "$<" "$(XML_DEST)"
35 $(TRALAY) -m localize.sdf -o "$(XML_DEST)" -l $(XML_LANGS:f:t" -l ") "$<"
37 -$(XML_DEST)/%.xml: %.xml
42 # Don't want to overwrite filled localize.sdf with empty template
44 $(foreach,i,$(XML_FILES) $(TRALAY) -l en-US "$i") > $@
46 -$(ZIP1LIST): localize.sdf