1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23PRJ=..$/..$/..
24
25PRJNAME=oovbapi
26
27TARGET=constants
28PACKAGE=org$/vba$/constants
29
30# --- Settings -----------------------------------------------------
31
32.INCLUDE :  $(PRJ)$/util$/makefile.pmk
33
34.IF "$(L10N_framework)"==""
35# ------------------------------------------------------------------------
36# I tried to use the IDLFILES target but it failed dismally
37MY_GEN_IDL_PATH=$(MISC)$/idl
38MY_GEN_UCR_PATH=$(OUT)$/ucr$/$(PACKAGE)
39MYTMPIDLFILES=$(shell @ls $(MY_GEN_IDL_PATH))
40#IDLFILES=$(foreach,i,$(MYTMPIDLFILES) $(MY_GEN_IDL_PATH)$/$(i))
41MYIDLFILES=$(foreach,i,$(MYTMPIDLFILES) $(MY_GEN_IDL_PATH)$/$(i))
42MYURDFILES=$(foreach,i,$(MYIDLFILES) $(MY_GEN_UCR_PATH)$/$(i:b).urd)
43MYDBTARGET=$(OUT)$/ucr/constants.db
44.ENDIF
45
46.INCLUDE :  target.mk
47
48.IF "$(L10N_framework)"==""
49ALLTAR: $(MYDBTARGET)
50
51$(MY_GEN_UCR_PATH)$/%.urd: $(MY_GEN_IDL_PATH)$/%.idl
52    $(IDLC) -C -O $(MY_GEN_UCR_PATH) -I $(MY_GEN_IDL_PATH) -I $(SOLARIDLDIR) $?
53
54$(MYDBTARGET) : $(MYURDFILES)  $(MYIDLFILES)
55    $(REGMERGE) $(OUT)$/ucr/constants.db /UCR @$(mktmp $(MYURDFILES))
56
57.ENDIF
58