xref: /aoo41x/main/svx/uiconfig/layout/layout.mk (revision bb113e63)
1*bb113e63SAndrew Rist# *************************************************************
2*bb113e63SAndrew Rist#
3*bb113e63SAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
4*bb113e63SAndrew Rist#  or more contributor license agreements.  See the NOTICE file
5*bb113e63SAndrew Rist#  distributed with this work for additional information
6*bb113e63SAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
7*bb113e63SAndrew Rist#  to you under the Apache License, Version 2.0 (the
8*bb113e63SAndrew Rist#  "License"); you may not use this file except in compliance
9*bb113e63SAndrew Rist#  with the License.  You may obtain a copy of the License at
10*bb113e63SAndrew Rist#
11*bb113e63SAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
12*bb113e63SAndrew Rist#
13*bb113e63SAndrew Rist#  Unless required by applicable law or agreed to in writing,
14*bb113e63SAndrew Rist#  software distributed under the License is distributed on an
15*bb113e63SAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*bb113e63SAndrew Rist#  KIND, either express or implied.  See the License for the
17*bb113e63SAndrew Rist#  specific language governing permissions and limitations
18*bb113e63SAndrew Rist#  under the License.
19*bb113e63SAndrew Rist#
20*bb113e63SAndrew Rist# *************************************************************
21cdf0e10cSrcweir# TODO: move to solenv/inc
22cdf0e10cSrcweir# copies: sw/uiconfig/layout svx/uiconfig/layout
23cdf0e10cSrcweir
24cdf0e10cSrcweirTRALAY=tralay
25cdf0e10cSrcweirXML_DEST=$(DLLDEST)
26cdf0e10cSrcweirXML_LANGS=$(alllangiso)
27cdf0e10cSrcweir
28cdf0e10cSrcweirALL_XMLS=$(foreach,i,$(XML_FILES) $(XML_DEST)/$i) $(foreach,i,$(XML_LANGS) $(foreach,j,$(XML_FILES) $(XML_DEST)/$i/$j))
29cdf0e10cSrcweir
30cdf0e10cSrcweir# Must remove the -j (no duplicate base file names) flag
31cdf0e10cSrcweirZIPUPDATE=-u
32cdf0e10cSrcweirXML_ZIP = $(PRJNAME)-layout
33cdf0e10cSrcweir
34cdf0e10cSrcweirALLTAR: $(XML_ZIP)
35cdf0e10cSrcweir
36cdf0e10cSrcweir$(XML_ZIP): $(ALL_XMLS)
37cdf0e10cSrcweir
38cdf0e10cSrcweirZIP1DIR=$(XML_DEST)
39cdf0e10cSrcweirZIP1TARGET=$(XML_ZIP)
40cdf0e10cSrcweirZIP1LIST=$(ALL_XMLS:s@$(XML_DEST)/@@)
41cdf0e10cSrcweir
42cdf0e10cSrcweir$(foreach,i,$(XML_LANGS) $(XML_DEST)/$i/%.xml): %.xml
43cdf0e10cSrcweir	-$(MKDIR) $(@:d)
44cdf0e10cSrcweir	@echo $(foreach,i,$(XML_LANGS) $(XML_DEST)/$i/%.xml): %.xml
45cdf0e10cSrcweir	$(TRALAY) -m localize.sdf -o $(XML_DEST) -l $(XML_LANGS:f:t" -l ") $<
46cdf0e10cSrcweir
47cdf0e10cSrcweir$(XML_DEST)/%.xml: %.xml
48cdf0e10cSrcweir	-$(MKDIR) $(@:d)
49cdf0e10cSrcweir	$(COPY) $< $@
50cdf0e10cSrcweir
51cdf0e10cSrcweir# Don't want to overwrite filled localize.sdf with empty template
52cdf0e10cSrcweirtemplate.sdf:
53cdf0e10cSrcweir	$(foreach,i,$(XML_FILES) $(TRALAY) -l en-US $i) > $@
54