merge the formfield patch from ooo-build
[ooovba.git] / solenv / inc / layout.mk
blobb345b1c5b307ed08399deb913f3dcfbd76158302
1 TRALAY=$(AUGMENT_LIBRARY_PATH) $(SOLARBINDIR)$/tralay
2 XML_DEST=$(DLLDEST)
3 XML_LANGS=$(alllangiso)
5 ALL_XMLS=$(foreach,i,$(XML_FILES) $(XML_DEST)$/$i) $(foreach,i,$(XML_LANGS) $(foreach,j,$(XML_FILES) $(XML_DEST)$/$i$/$j))
6 XML_DEPS=$(foreach,i,$(XML_FILES) $(MISC)$/$i.dep)
8 # Must remove the -j (no duplicate base file names) flag
9 ZIPUPDATE=-u
10 XML_ZIP = $(PRJNAME)-layout
12 ALLTAR .SEQUENTIAL: localize.sdf ALL_XML_DEPS
14 ALL_XML_DEPS: $(XML_DEPS)
16 ZIP1DIR=$(XML_DEST)
17 ZIP1TARGET=$(XML_ZIP)
18 ZIP1LIST=$(ALL_XMLS:s@$(XML_DEST)/@@)
19 ZIP1DEPS=localize.sdf $(XML_DEPS)
21 $(MISC)$/%.xml.dep: %.xml
22 -$(MKDIR) "$(XML_DEST)"
23 cp "$<" "$(XML_DEST)"
24 $(TRALAY) -m localize.sdf -o "$(XML_DEST)" -l $(XML_LANGS:f:t" -l ") "$<"
25 $(TOUCH) "$@"
27 # Don't want to overwrite filled localize.sdf with empty template
28 template.sdf:
29 $(foreach,i,$(XML_FILES) $(TRALAY) -l en-US "$i") > $@