summaryrefslogtreecommitdiff
path: root/svx/uiconfig
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2008-07-30 13:32:32 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2008-07-30 13:32:32 +0000
commita227da9819f508329f7dfcd8e3eb4ac53f23b966 (patch)
tree0717c2a29931fe7741cdcc06e2a18354273a8b42 /svx/uiconfig
parent0874439cc9cc05d948bf13987b41c68faafbba8b (diff)
INTEGRATION: CWS layoutdialogs (1.1.2); FILE ADDED
2008/03/31 15:01:53 jcn 1.1.2.1: Factor out layout.mk.
Diffstat (limited to 'svx/uiconfig')
-rw-r--r--svx/uiconfig/layout/layout.mk33
1 files changed, 33 insertions, 0 deletions
diff --git a/svx/uiconfig/layout/layout.mk b/svx/uiconfig/layout/layout.mk
new file mode 100644
index 0000000000..f6bea876d8
--- /dev/null
+++ b/svx/uiconfig/layout/layout.mk
@@ -0,0 +1,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) > $@