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