xref: /aoo4110/main/offapi/util/makefile.mk (revision b1cdbd2c)
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
23
24PRJ=..
25PRJPCH=
26
27PRJNAME=offapi
28TARGET=offapi_db
29
30
31# --- Settings -----------------------------------------------------
32
33.INCLUDE :  makefile.pmk
34
35# ------------------------------------------------------------------
36UNOIDLDBFILES= \
37    $(UCR)$/cssauth.db \
38    $(UCR)$/cssawt.db \
39    $(UCR)$/cssawttree.db \
40    $(UCR)$/cssawtgrid.db \
41    $(UCR)$/cssawttab.db \
42    $(UCR)$/csschart.db \
43    $(UCR)$/csschart2.db \
44    $(UCR)$/csschart2data.db \
45    $(UCR)$/cssconfiguration.db \
46    $(UCR)$/csscbootstrap.db\
47    $(UCR)$/csscbackend.db\
48    $(UCR)$/csscbxml.db\
49    $(UCR)$/cssdatatransfer.db \
50    $(UCR)$/cssdeployment.db \
51    $(UCR)$/cssdeploymenttest.db \
52    $(UCR)$/cssdeploymentui.db \
53    $(UCR)$/cssdclipboard.db \
54    $(UCR)$/cssddnd.db \
55    $(UCR)$/cssdocument.db \
56    $(UCR)$/cssdrawing.db \
57    $(UCR)$/cssdframework.db \
58    $(UCR)$/cssgeometry.db \
59    $(UCR)$/cssrendering.db \
60    $(UCR)$/cssembed.db \
61    $(UCR)$/cssfcontrol.db \
62    $(UCR)$/cssfinsp.db \
63    $(UCR)$/cssfrunt.db \
64    $(UCR)$/cssform.db \
65    $(UCR)$/cssxforms.db \
66    $(UCR)$/cssfcomp.db \
67    $(UCR)$/cssfbinding.db \
68    $(UCR)$/cssfvalidation.db \
69    $(UCR)$/cssfsubmission.db \
70    $(UCR)$/cssformula.db \
71    $(UCR)$/cssgraphic.db \
72    $(UCR)$/cssinstallation.db \
73    $(UCR)$/cssi18n.db \
74    $(UCR)$/cssldap.db \
75    $(UCR)$/csslinguistic2.db \
76    $(UCR)$/csslogging.db \
77    $(UCR)$/cssmail.db \
78    $(UCR)$/cssmedia.db \
79    $(UCR)$/cssmozilla.db \
80    $(UCR)$/cssoooimprovement.db \
81    $(UCR)$/csspackages.db \
82    $(UCR)$/cssmanifest.db \
83    $(UCR)$/csszippackage.db \
84    $(UCR)$/cssplugin.db \
85    $(UCR)$/csspresentation.db \
86    $(UCR)$/cssanimations.db \
87    $(UCR)$/cssresource.db \
88    $(UCR)$/csssax.db \
89    $(UCR)$/cssdom.db \
90    $(UCR)$/cssxpath.db \
91    $(UCR)$/cssdomviews.db \
92    $(UCR)$/cssdomevents.db \
93    $(UCR)$/cssscanner.db \
94    $(UCR)$/cssscript.db \
95    $(UCR)$/cssscriptvba.db \
96    $(UCR)$/csssdb.db \
97    $(UCR)$/csssdbc.db \
98    $(UCR)$/csssdbcx.db \
99    $(UCR)$/csssdbtools.db \
100    $(UCR)$/csssdbapp.db \
101    $(UCR)$/csssheet.db \
102    $(UCR)$/csssmarttags.db \
103    $(UCR)$/cssstyle.db \
104    $(UCR)$/csssystem.db\
105    $(UCR)$/csstable.db \
106    $(UCR)$/csstask.db \
107    $(UCR)$/csstext.db \
108    $(UCR)$/csstextfield.db \
109    $(UCR)$/csstextfielddocinfo.db \
110    $(UCR)$/cssfieldmaster.db \
111    $(UCR)$/cssucb.db \
112    $(UCR)$/cssutil.db \
113    $(UCR)$/cssview.db \
114    $(UCR)$/csssvg.db \
115    $(UCR)$/csssync.db \
116    $(UCR)$/csssync2.db \
117    $(UCR)$/cssxml.db \
118    $(UCR)$/cssxmlinput.db \
119    $(UCR)$/csssetup.db \
120    $(UCR)$/cssimage.db\
121    $(UCR)$/cssuidialogs.db \
122    $(UCR)$/cssui.db \
123    $(UCR)$/cssframe.db \
124    $(UCR)$/cssfstatus.db \
125    $(UCR)$/cssgraphic.db \
126    $(UCR)$/cssaccessibility.db\
127    $(UCR)$/csssprovider.db \
128    $(UCR)$/csssbrowse.db \
129    $(UCR)$/cssgallery.db \
130    $(UCR)$/cssxsd.db \
131    $(UCR)$/cssinspection.db \
132    $(UCR)$/xsec-security.db \
133    $(UCR)$/xsec-crypto.db \
134    $(UCR)$/xsec-csax.db \
135    $(UCR)$/xsec-sax.db \
136    $(UCR)$/xsec-wrapper.db \
137    $(UCR)$/cssreport.db \
138    $(UCR)$/cssrptins.db \
139    $(UCR)$/cssrptmeta.db \
140    $(UCR)$/cssoffice.db \
141    $(UCR)$/cssrdf.db
142
143
144REFERENCE_RDB=$(PRJ)$/type_reference$/types.rdb
145
146REGISTRYCHECKFLAG=$(MISC)$/registrycheck.flag
147
148UNOTYPE_STATISTICS=$(MISC)$/unotype_statistics.txt
149
150REGVIEWTOOL=$(SOLARBINDIR)$/regview$(EXECPOST)
151
152# --- Targets ------------------------------------------------------
153
154ALLTAR : $(UCR)$/types.db \
155       $(OUT)$/ucrdoc$/types_doc.db \
156       $(REGISTRYCHECKFLAG) \
157       $(UNOTYPE_STATISTICS)
158
159$(UCR)$/types.db : $(UCR)$/offapi.db $(SOLARBINDIR)$/udkapi.rdb
160    @-$(RM) $(REGISTRYCHECKFLAG)
161    @$(GNUCOPY) -f $(UCR)$/offapi.db $@
162    $(COMMAND_ECHO)$(REGMERGE) $@ / $(SOLARBINDIR)$/udkapi.rdb
163
164$(OUT)$/ucrdoc$/types_doc.db : $(OUT)$/ucrdoc$/offapi_doc.db $(SOLARBINDIR)$/udkapi_doc.rdb
165    @-$(RM) $(REGISTRYCHECKFLAG)
166    @$(GNUCOPY) -f $(OUT)$/ucrdoc$/offapi_doc.db $@
167    $(COMMAND_ECHO)$(REGMERGE) $@ / $(SOLARBINDIR)$/udkapi_doc.rdb
168
169#JSC: The type library has changed, all temporary not checked types are removed
170#     and will be check from now on.
171# ATTENTION: no special handling for types is allowed.
172#
173#JSC: i have removed the doc rdb because all type information is already in the
174#     types.rdb, even the service and singleton type info. IDL docu isn't checked.
175$(REGISTRYCHECKFLAG) : $(UCR)$/types.db $(OUT)$/ucrdoc$/types_doc.db
176    $(COMMAND_ECHO)$(REGCOMPARE) -f -t -r1 $(REFERENCE_RDB) -r2 $(UCR)$/types.db \
177        && echo > $(REGISTRYCHECKFLAG)
178
179#JSC: new target to prepare some UNO type statistics, the ouput will be later used
180#     for versioning of UNO cli type libraries
181$(UNOTYPE_STATISTICS) : $(REGISTRYCHECKFLAG)
182    $(COMMAND_ECHO)$(AUGMENT_LIBRARY_PATH) $(PERL) checknewapi.pl $(UCR)$/types.db $(REFERENCE_RDB) "$(RSCREVISION)" "$(REGVIEWTOOL)" > $@
183
184.INCLUDE :  target.mk
185