xref: /trunk/main/connectivity/util/makefile.mk (revision 752c0af7)
1*e3c01311SAndrew Rist#**************************************************************
2*e3c01311SAndrew Rist#
3*e3c01311SAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
4*e3c01311SAndrew Rist#  or more contributor license agreements.  See the NOTICE file
5*e3c01311SAndrew Rist#  distributed with this work for additional information
6*e3c01311SAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
7*e3c01311SAndrew Rist#  to you under the Apache License, Version 2.0 (the
8*e3c01311SAndrew Rist#  "License"); you may not use this file except in compliance
9*e3c01311SAndrew Rist#  with the License.  You may obtain a copy of the License at
10*e3c01311SAndrew Rist#
11*e3c01311SAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
12*e3c01311SAndrew Rist#
13*e3c01311SAndrew Rist#  Unless required by applicable law or agreed to in writing,
14*e3c01311SAndrew Rist#  software distributed under the License is distributed on an
15*e3c01311SAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*e3c01311SAndrew Rist#  KIND, either express or implied.  See the License for the
17*e3c01311SAndrew Rist#  specific language governing permissions and limitations
18*e3c01311SAndrew Rist#  under the License.
19*e3c01311SAndrew Rist#
20*e3c01311SAndrew Rist#**************************************************************
21*e3c01311SAndrew Rist
22*e3c01311SAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweirPRJ = ..
25cdf0e10cSrcweirPRJNAME = connectivity
26cdf0e10cSrcweirTARGET = connectivity
27cdf0e10cSrcweir
28cdf0e10cSrcweir.INCLUDE : settings.mk
29cdf0e10cSrcweir.INCLUDE : target.mk
30cdf0e10cSrcweir
31cdf0e10cSrcweir# For any given platform, for each driver .xcu (in $(MY_XCUS)) built on that
32cdf0e10cSrcweir# platform (in $(MISC)/registry/data/org/openoffice/Office/DataAccess) there are
33cdf0e10cSrcweir# corresponding language-specific .xcu files (in
34cdf0e10cSrcweir# $(MISC)/registry/res/%/org/openoffice/Office/DataAccess).  For each language,
35cdf0e10cSrcweir# all language-specific .xcu files for that language are assembled into
36cdf0e10cSrcweir# $(BIN)$/fcfg_drivers_%.zip.  To meet the requirements of dmake percent rules,
37cdf0e10cSrcweir# the first item from $(MY_XCUS) is arbitrarily taken to be the main
38cdf0e10cSrcweir# prerequisite while all the items from $(MY_XCUS) are made into indirect
39cdf0e10cSrcweir# prerequisites (harmlessly doubling the first item).
40cdf0e10cSrcweir
41cdf0e10cSrcweirMY_XCUS := \
42cdf0e10cSrcweir    $(shell cd $(MISC)/registry/data/org/openoffice/Office/DataAccess && \
43cdf0e10cSrcweir    ls *.xcu)
44cdf0e10cSrcweir
45cdf0e10cSrcweir.IF "$(MY_XCUS)" != ""
46cdf0e10cSrcweir
47cdf0e10cSrcweirALLTAR : $(BIN)/fcfg_drivers_{$(alllangiso)}.zip
48cdf0e10cSrcweir
49cdf0e10cSrcweir$(BIN)/fcfg_drivers_{$(alllangiso)}.zip : \
50cdf0e10cSrcweir        $(MISC)/registry/res/$$(@:b:s/fcfg_drivers_//)/org/openoffice/Office/DataAccess/{$(MY_XCUS)}
51cdf0e10cSrcweir
52cdf0e10cSrcweir$(BIN)/fcfg_drivers_%.zip : \
53cdf0e10cSrcweir        $(MISC)/registry/res/%/org/openoffice/Office/DataAccess/$(MY_XCUS:1)
54cdf0e10cSrcweir    zip -j $@ \
55cdf0e10cSrcweir        $(foreach,i,$(MY_XCUS) \
56cdf0e10cSrcweir            $(MISC)/registry/res/$*/org/openoffice/Office/DataAccess/$i)
57cdf0e10cSrcweir
58cdf0e10cSrcweir.ENDIF
59