update dev300-m58
[ooovba.git] / odk / pack / copying / makefile.mk
blob24bbdc271a40b5e774ddb3dd4063adc940d6b473
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 #--------------------------------------------------
217 all : CLEAN_DKVERSION_CHECK \
218 $(DIR_FILE_LIST) \
219 $(DIR_FILE_FLAG) \
221 #--------------------------------------------------
222 # use global rules
223 #--------------------------------------------------
224 .INCLUDE: $(PRJ)$/util$/odk_rules.pmk
227 CLEANUP_DKVERSION_FILE=$(DESTDIRSETTINGS)$/dk.mk
230 CLEAN_DKVERSION_CHECK:
231 @@-rm -f $(CLEANUP_DKVERSION_FILE)
233 $(DESTDIRBIN)$/addsym-macosx.sh : addsym-macosx.sh
234 @@-rm -f $@
235 $(MY_TEXTCOPY) $(MY_TEXTCOPY_SOURCEPRE) $< $(MY_TEXTCOPY_TARGETPRE) $@
236 -chmod 755 $@
238 $(DESTDIRSETTINGS)$/dk.mk : dk.mk
239 @@-rm -f $@
240 -$(MKDIRHIER) $(@:d)
241 tr -d "\015" < dk.mk | sed -e 's/@@RELEASE@@/$(PRODUCT_RELEASE)/' -e 's/@@BUILDID@@/$(RSCREVISION)/'> $@
243 $(CONVERTTAGFLAG) : $(DOCUHTMLFILES)
244 $(PERL) $(CONVERTTAGSCRIPT) 1 "$(TITLE)" "$(OFFICEPRODUCTNAME)" $(DOCUHTMLFILES)
245 @echo "tags converted" > $@
247 $(IDL_DOCU_CLEANUP_FLAG) : $(IDL_CHAPTER_REFS) $(IDL_SINCE_TAGS) $(PRJ)$/docs$/common$/ref$/idl.css
248 @@-$(MY_DELETE_RECURSIVE) $(DESTDIRGENIDLREF)
249 $(TOUCH) $@
251 $(IDL_DOCU_INDEX_FILE) : $(IDL_DOCU_CLEANUP_FLAG)
252 -$(MKDIRHIER) $(@:d)
253 $(MY_AUTODOC) -html $(DESTDIRGENIDLREF) -dvgroot "http://wiki.services.openoffice.org/wiki" -sincefile $(IDL_SINCE_TAGS) -name $(IDLDOCREFNAME) -lg \
254 idl -dvgfile $(IDL_CHAPTER_REFS) -t $(DESTDIRIDL)
255 -rm $(@:d)$/idl.css
256 $(MY_TEXTCOPY) $(MY_TEXTCOPY_SOURCEPRE) $(PRJ)$/docs$/common$/ref$/idl.css $(MY_TEXTCOPY_TARGETPRE) $(@:d:d)$/idl.css
259 .IF "$(SOLAR_JAVA)" != ""
260 $(MYZIPTARGET) : $(BIN)$/unowinreg.dll $(DESTCLASSESLIST)
261 cd $(MYZIPDIR) && zip $(MYZIPFLAGS) ..$/..$/..$/bin$/$(MYZIPTARGET:b) $(MYZIPLIST)
262 .ENDIF