Update ooo320-m1
[ooovba.git] / odk / pack / copying / makefile.mk
blobf67cbd193a9dcc81e25813503a26fb4bcf6a197c
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.90 $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
32 PRJ=..$/..
33 PRJNAME=odk
34 TARGET=copying
36 #----------------------------------------------------------------
37 .INCLUDE: settings.mk
38 .INCLUDE: $(PRJ)$/util$/makefile.pmk
39 #----------------------------------------------------------------
41 IDLLIST:={$(subst,/,$/ $(shell @$(FIND) $(IDLOUT) -type f | sed -e '/star.portal/d' -e'/star.webservices/d'))}
42 DESTIDLLIST={$(subst,$(IDLOUT),$(DESTDIRIDL) $(IDLLIST))}
44 DESTINCLUDELIST={$(subst,$(SOLARINCDIR),$(DESTDIRINC) $(INCLUDELIST))}
45 DESTINCLUDELIST+=$(DESTDIRINC)$/udkversion.mk
47 DESTINCDIRLIST={$(subst,$(INCOUT),$(DESTDIRINC) $(INCLUDEDIRLIST))}
49 IDL_DOCU_INDEX_FILE = $(DESTDIRGENIDLREF)$/module-ix.html
50 IDL_DOCU_CLEANUP_FLAG = $(MISC)$/idl_docu_cleanup.flag
52 IDL_CHAPTER_REFS=idl_chapter_refs.txt
53 IDL_SINCE_TAGS=apiref-autodoc.since
55 EXELIST = \
56 $(DESTDIRBIN)$/cppumaker$(EXEPOSTFIX) \
57 $(DESTDIRBIN)$/regcompare$(EXEPOSTFIX) \
58 $(DESTDIRBIN)$/idlcpp$(EXEPOSTFIX) \
59 $(DESTDIRBIN)$/idlc$(EXEPOSTFIX) \
60 $(DESTDIRBIN)$/javamaker$(EXEPOSTFIX) \
61 $(DESTDIRBIN)$/autodoc$(EXEPOSTFIX) \
62 $(DESTDIRBIN)$/unoapploader$(EXEPOSTFIX) \
63 $(DESTDIRBIN)$/uno-skeletonmaker$(EXEPOSTFIX)
65 .IF "$(GUI)"=="WNT"
66 EXELIST += \
67 $(DESTDIRBIN)$/climaker$(EXEPOSTFIX)
68 .ENDIF
70 .IF "$(GUI)"=="WNT"
71 CLILIST = \
72 $(DESTDIRCLI)$/cli_basetypes.dll \
73 $(DESTDIRCLI)$/cli_uretypes.dll \
74 $(DESTDIRCLI)$/cli_oootypes.dll \
75 $(DESTDIRCLI)$/cli_ure.dll \
76 $(DESTDIRCLI)$/cli_cppuhelper.dll
77 .ENDIF
80 .IF "$(GUI)"=="WNT"
81 LIBLIST = \
82 $(DESTDIRLIB)$/istore.lib \
83 $(DESTDIRLIB)$/ireg.lib \
84 $(DESTDIRLIB)$/isal.lib \
85 $(DESTDIRLIB)$/isalhelper.lib \
86 $(DESTDIRLIB)$/icppu.lib \
87 $(DESTDIRLIB)$/icppuhelper.lib \
88 $(DESTDIRLIB)$/irmcxt.lib \
89 $(DESTDIRLIB)$/ipurpenvhelper3MSC.lib
91 .IF "$(COMEX)"=="8"
92 LIBLIST += $(DESTDIRLIB)$/stlport_vc7.lib
93 .ELIF "$(COMEX)"=="10" || "$(COMEX)"=="11" || "$(COMEX)"=="12"
94 LIBLIST += $(DESTDIRLIB)$/stlport_vc71.lib
95 .ELSE
96 LIBLIST += $(DESTDIRLIB)$/stlport_vc6.lib
97 .ENDIF
98 .ENDIF
100 .IF "$(OS)"=="LINUX"
101 LIBLIST = $(DESTDIRLIB)$/libsalcpprt.a
102 .ENDIF
104 # note, that inner class files are copied implicitly
105 DESTCLASSESLIST= \
106 $(DESTDIRJAR)$/com$/sun$/star$/lib$/loader$/Loader.class \
107 $(DESTDIRJAR)$/com$/sun$/star$/lib$/loader$/InstallationFinder.class \
108 $(DESTDIRJAR)$/com$/sun$/star$/lib$/loader$/WinRegKey.class \
109 $(DESTDIRJAR)$/com$/sun$/star$/lib$/loader$/WinRegKeyException.class
110 # $(DESTDIRJAR)$/com$/sun$/star$/lib$/loader$/Loader$$CustomURLClassLoader.class \
111 # $(DESTDIRJAR)$/com$/sun$/star$/lib$/loader$/InstallationFinder$$StreamGobbler.class \
113 SETTINGSLIST= \
114 $(DESTDIRSETTINGS)$/settings.mk \
115 $(DESTDIRSETTINGS)$/std.mk \
116 $(DESTDIRSETTINGS)$/stdtarget.mk \
117 $(DESTDIRSETTINGS)$/dk.mk
120 .IF "$(GUI)"=="WNT"
121 SETTINGSLIST+=$(DESTDIRSETTINGS)$/component.uno.def
122 .ENDIF
124 .IF "$(GUI)"=="UNX"
125 SETTINGSLIST+=$(DESTDIRSETTINGS)$/component.uno.map
126 .ENDIF
129 DOCUHTMLFILES+= \
130 $(DESTDIR)$/index.html \
131 $(DESTDIRDOCU)$/tools.html \
132 $(DESTDIRDOCU)$/notsupported.html \
133 $(DESTDIRDOCU)$/install.html \
134 $(DESTDIREXAMPLES)$/examples.html \
135 $(DESTDIREXAMPLES)$/DevelopersGuide$/examples.html
137 DOCUFILES= \
138 $(DOCUHTMLFILES) \
139 $(DESTDIRDOCU)$/sdk_styles.css \
140 $(DESTDIRGENIDLREF)$/idl.css \
141 $(DESTDIRDOCUIMAGES)$/nada.gif \
142 $(DESTDIRDOCUIMAGES)$/arrow-2.gif \
143 $(DESTDIRDOCUIMAGES)$/bluball.gif \
144 $(DESTDIRDOCUIMAGES)$/so-main-app_32.png \
145 $(DESTDIRDOCUIMAGES)$/ooo-main-app_32.png \
146 $(DESTDIRDOCUIMAGES)$/arrow-1.gif \
147 $(DESTDIRDOCUIMAGES)$/arrow-3.gif \
148 $(DESTDIRDOCUIMAGES)$/bg_table.gif \
149 $(DESTDIRDOCUIMAGES)$/bg_table2.gif \
150 $(DESTDIRDOCUIMAGES)$/bg_table3.gif \
151 $(DESTDIRDOCUIMAGES)$/nav_down.png \
152 $(DESTDIRDOCUIMAGES)$/nav_home.png \
153 $(DESTDIRDOCUIMAGES)$/nav_left.png \
154 $(DESTDIRDOCUIMAGES)$/nav_right.png \
155 $(DESTDIRDOCUIMAGES)$/nav_up.png \
156 $(DESTDIRDOCUIMAGES)$/sdk_head-1.gif \
157 $(DESTDIRDOCUIMAGES)$/sdk_head-2.gif \
158 $(DESTDIRDOCUIMAGES)$/sdk_head-3.gif \
159 $(DESTDIRDOCUIMAGES)$/sdk_line-1.gif \
160 $(DESTDIRDOCUIMAGES)$/sdk_line-2.gif
162 .IF "$(GUI)"=="UNX"
163 INSTALLSCRIPT= \
164 $(DESTDIR)$/config.guess \
165 $(DESTDIR)$/config.sub \
166 $(DESTDIR)$/configure.pl \
167 $(DESTDIR)$/setsdkenv_unix \
168 $(DESTDIR)$/setsdkenv_unix.sh.in \
169 $(DESTDIR)$/setsdkenv_unix.csh.in
170 .ELSE
171 INSTALLSCRIPT= \
172 $(DESTDIR)$/setsdkenv_windows.bat \
173 $(DESTDIR)$/setsdkenv_windows.template \
174 $(DESTDIR)$/setsdkname.bat \
175 $(DESTDIR)$/cfgWin.js
176 .ENDIF
178 DIR_FILE_LIST=\
179 $(EXELIST) \
180 $(CLILIST) \
181 $(LIBLIST) \
182 $(SETTINGSLIST) \
183 $(DOCUFILES) \
184 $(INSTALLSCRIPT) \
185 $(DESTIDLLIST) \
186 $(DESTINCLUDELIST) \
187 $(DESTCLASSESLIST) \
188 $(IDL_DOCU_INDEX_FILE) \
189 $(CONVERTTAGFLAG)
191 .IF "$(OS)"=="MACOSX"
192 DIR_FILE_LIST += $(DESTDIRBIN)$/addsym-macosx.sh
193 .ENDIF
195 .IF "$(SOLAR_JAVA)" != ""
196 DIR_FILE_LIST += $(DESTDIRJAR)$/win$/unowinreg.dll
197 .ENDIF
199 DIR_DIRECTORY_LIST:=$(uniq $(DIR_FILE_LIST:d))
200 DIR_CREATE_FLAG:=$(MISC)$/copying_dirs_created.txt
201 DIR_FILE_FLAG:=$(MISC)$/copying_files.txt
203 .IF "$(SOLAR_JAVA)" != ""
204 # Special work for simple uno bootstrap mechanism
205 # zip uno loader class files and winreg helper library for later
206 # use in the build process (e.g. helper tools)
207 MYZIPTARGET=$(BIN)$/uno_loader_classes.zip
208 MYZIPFLAGS=-u -r
209 MYZIPDIR=$(DESTDIRJAR)
210 MYZIPLIST=com$/* win$/*
212 .ENDIF
214 #--------------------------------------------------
215 # TARGETS
216 #--------------------------------------------------
218 .IF "$(L10N_framework)"==""
220 all : CLEAN_DKVERSION_CHECK \
221 $(DIR_FILE_LIST) \
222 $(DIR_FILE_FLAG) \
224 .ENDIF
226 #--------------------------------------------------
227 # use global rules
228 #--------------------------------------------------
229 .INCLUDE: $(PRJ)$/util$/odk_rules.pmk
232 CLEANUP_DKVERSION_FILE=$(DESTDIRSETTINGS)$/dk.mk
235 CLEAN_DKVERSION_CHECK:
236 @@-rm -f $(CLEANUP_DKVERSION_FILE)
238 $(DESTDIRBIN)$/addsym-macosx.sh : addsym-macosx.sh
239 @@-rm -f $@
240 $(MY_TEXTCOPY) $(MY_TEXTCOPY_SOURCEPRE) $< $(MY_TEXTCOPY_TARGETPRE) $@
241 -chmod 755 $@
243 $(DESTDIRSETTINGS)$/dk.mk : dk.mk
244 @@-rm -f $@
245 -$(MKDIRHIER) $(@:d)
246 tr -d "\015" < dk.mk | sed -e 's/@@RELEASE@@/$(PRODUCT_RELEASE)/' -e 's/@@BUILDID@@/$(RSCREVISION)/'> $@
248 $(CONVERTTAGFLAG) : $(DOCUHTMLFILES)
249 $(PERL) $(CONVERTTAGSCRIPT) 1 "$(TITLE)" "$(OFFICEPRODUCTNAME)" $(DOCUHTMLFILES)
250 @echo "tags converted" > $@
252 $(IDL_DOCU_CLEANUP_FLAG) : $(IDL_CHAPTER_REFS) $(IDL_SINCE_TAGS) $(PRJ)$/docs$/common$/ref$/idl.css
253 @@-$(MY_DELETE_RECURSIVE) $(DESTDIRGENIDLREF)
254 $(TOUCH) $@
256 $(IDL_DOCU_INDEX_FILE) : $(IDL_DOCU_CLEANUP_FLAG)
257 -$(MKDIRHIER) $(@:d)
258 $(MY_AUTODOC) -html $(DESTDIRGENIDLREF) -dvgroot "http://wiki.services.openoffice.org/wiki" -sincefile $(IDL_SINCE_TAGS) -name $(IDLDOCREFNAME) -lg \
259 idl -dvgfile $(IDL_CHAPTER_REFS) -t $(DESTDIRIDL)
260 -rm $(@:d)$/idl.css
261 $(MY_TEXTCOPY) $(MY_TEXTCOPY_SOURCEPRE) $(PRJ)$/docs$/common$/ref$/idl.css $(MY_TEXTCOPY_TARGETPRE) $(@:d:d)$/idl.css
264 .IF "$(SOLAR_JAVA)" != ""
265 $(MYZIPTARGET) : $(BIN)$/unowinreg.dll $(DESTCLASSESLIST)
266 cd $(MYZIPDIR) && zip $(MYZIPFLAGS) ..$/..$/..$/bin$/$(MYZIPTARGET:b) $(MYZIPLIST)
267 .ENDIF