update dev300-m58
[ooovba.git] / instsetoo_native / util / makefile.mk
blob18b5013d8763a57134a386c9f8cb4733a055e467
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.91 $
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=instsetoo_native
34 TARGET=util
35 GEN_HID2=TRUE
37 .INCLUDE: settings.mk
38 .INCLUDE: $(SOLARINCDIR)$/rtlbootstrap.mk
40 # PERL:=@echo
42 # watch for the path delimiter
43 .IF "$(GUI)"=="WNT"
44 PYTHONPATH:=$(PWD)$/$(BIN);$(SOLARLIBDIR);$(SOLARLIBDIR)$/python;$(SOLARLIBDIR)$/python$/lib-dynload
45 .ELSE # "$(GUI)"=="WNT"
46 PYTHONPATH:=$(PWD)$/$(BIN):$(SOLARLIBDIR):$(SOLARLIBDIR)$/python:$(SOLARLIBDIR)$/python$/lib-dynload
47 .ENDIF # "$(GUI)"=="WNT"
48 .EXPORT: PYTHONPATH
50 .IF ("$(CWS_WORK_STAMP)"=="" || "$(UPDATER)"!="") && "$(OS)"!="MACOSX"
51 ENABLE_DOWNLOADSETS*=TRUE
52 .ENDIF # "$(CWS_WORK_STAMP)"=="" || "$(UPDATER)"!=""
53 .IF "$(FORCE_DOWNLOADSETS)"!=""
54 ENABLE_DOWNLOADSETS=TRUE
55 .ENDIF # "$(FORCE_DOWNLOADSETS)"!=""
57 .EXPORT: ENABLE_DOWNLOADSETS
58 .EXPORT: LAST_MINOR
59 .EXPORT: PRJ
60 .EXPORT: PRJNAME
62 .IF "$(OS)"=="LINUX"
63 DONT_REMOVE_PACKAGE:=TRUE
64 .EXPORT: DONT_REMOVE_PACKAGE
65 .ENDIF # "$(OS)"=="LINUX"
67 .INCLUDE .IGNORE: $(SRC_ROOT)$/cwsname.mk
69 SHARED_COM_SDK_PATH*:=.
71 INSTALLDIR=$(OUT)
73 .INCLUDE: target.mk
75 LOCALPYFILES= \
76 $(BIN)$/uno.py \
77 $(BIN)$/unohelper.py \
78 $(BIN)$/pythonloader.py \
79 $(BIN)$/pythonscript.py \
80 $(BIN)$/officehelper.py \
81 $(BIN)$/mailmerge.py
83 # PKGFORMAT taken from environment. See possible
84 # values below.
86 # epm supports the following formats:
87 # aix - AIX software distribution
88 # bsd - FreeBSD, NetBSD, or OpenBSD software distribution
89 # depot or swinstall - HP-UX software distribution
90 # deb - Debian software distribution
91 # inst or tardist - IRIX software distribution
92 # osx - MacOS X software distribution
93 # pkg - Solaris software distribution
94 # rpm - RedHat software distribution
95 # setld - Tru64 (setld) software distribution
96 # native - "Native" software distribution for the platform
97 # portable - Portable software distribution
98 xxxx:
99 echo $(PERL) -w $(SOLARENV)$/bin$/gen_update_info.pl --buildid $(BUILD) --arch "$(RTL_ARCH)" --os "$(RTL_OS)" --lstfile $(PRJ)$/util$/openoffice.lst --product OpenOffice --languages $(subst,$(@:s/_/ /:1)_, $(@:b)) $(PRJ)$/util$/update.xml
101 .IF "$(GUI)"!="WNT" && "$(EPM)"=="NO" && "$(USE_PACKAGER)"==""
102 ALLTAR : $(LOCALPYFILES)
103 @echo "No EPM: do no packaging at this stage"
104 .ELSE # "$(GUI)"!="WNT" && "$(EPM)"=="NO" && "$(USE_PACKAGER)"==""
105 .IF "$(UPDATER)"=="" || "$(USE_PACKAGER)"==""
106 .IF "$(BUILD_TYPE)"=="$(BUILD_TYPE:s/ODK//)"
107 ALLTAR : openoffice_$(defaultlangiso) ooolanguagepack
108 .ELSE
109 ALLTAR : openoffice_$(defaultlangiso) ooolanguagepack sdkoo_en-US ure_en-US
110 .ENDIF
111 .ELSE # "$(UPDATER)"=="" || "$(USE_PACKAGER)"==""
112 ALLTAR : updatepack
113 .ENDIF # "$(UPDATER)"=="" || "$(USE_PACKAGER)"==""
114 .ENDIF # "$(GUI)"!="WNT" && "$(EPM)"=="NO" && "$(USE_PACKAGER)"==""
116 .IF "$(MAKETARGETS:e)"!=""
117 PKGFORMAT+=$(MAKETARGETS:e:s/.//)
118 .ENDIF # "$(MAKETARGETS:e)"!=""
120 .IF "$(PKGFORMAT)"!=""
121 .IF "$(FORCE2ARCHIVE)"!=""
122 PKGFORMATSWITCH=-format archive
123 .ELSE # "$(FORCE2ARCHIVE)"!=""
124 PKGFORMATSWITCH=-format xxx
125 .ENDIF # "$(FORCE2ARCHIVE)"!=""
126 .ENDIF # "$(PKGFORMAT)"!=""
128 .IF "$(VERBOSE)"=="TRUE"
129 VERBOSESWITCH=-verbose
130 .ENDIF
131 .IF "$(VERBOSE)"=="FALSE"
132 VERBOSESWITCH=-quiet
133 .ENDIF
135 updatepack:
136 $(PERL) -w $(SOLARENV)$/bin$/packager.pl
138 .IF "$(alllangiso)"!=""
140 openoffice: $(foreach,i,$(alllangiso) openoffice_$i)
142 openofficedev: $(foreach,i,$(alllangiso) openofficedev_$i)
144 openofficewithjre: $(foreach,i,$(alllangiso) openofficewithjre_$i)
146 ooolanguagepack : $(foreach,i,$(alllangiso) ooolanguagepack_$i)
148 ooodevlanguagepack: $(foreach,i,$(alllangiso) ooodevlanguagepack_$i)
150 sdkoo: $(foreach,i,$(alllangiso) sdkoo_$i)
152 sdkoodev: $(foreach,i,$(alllangiso) sdkoodev_$i)
154 ure: $(foreach,i,$(alllangiso) ure_$i)
156 broffice: $(foreach,i,$(alllangiso) broffice_$i)
158 brofficedev: $(foreach,i,$(alllangiso) brofficedev_$i)
160 brofficewithjre: $(foreach,i,$(alllangiso) brofficewithjre_$i)
162 broolanguagepack : $(foreach,i,$(alllangiso) broolanguagepack_$i)
164 MSIOFFICETEMPLATESOURCE=$(PRJ)$/inc_openoffice$/windows$/msi_templates
165 MSILANGPACKTEMPLATESOURCE=$(PRJ)$/inc_ooolangpack$/windows$/msi_templates
166 MSIURETEMPLATESOURCE=$(PRJ)$/inc_ure$/windows$/msi_templates
167 MSISDKOOTEMPLATESOURCE=$(PRJ)$/inc_sdkoo$/windows$/msi_templates
169 .IF "$(BUILD_SPECIAL)"!=""
170 MSIOFFICETEMPLATEDIR=$(MSIOFFICETEMPLATESOURCE)
171 MSILANGPACKTEMPLATEDIR=$(MSILANGPACKTEMPLATESOURCE)
172 MSIURETEMPLATEDIR=$(MSIURETEMPLATESOURCE)
173 MSISDKOOTEMPLATEDIR=$(MSISDKOOTEMPLATESOURCE)
174 .ELSE # "$(BUILD_SPECIAL)"!=""
175 NOLOGOSPLASH:=$(BIN)$/intro.zip
176 DEVNOLOGOSPLASH:=$(BIN)$/dev$/intro.zip
177 BROFFICENOLOGOSPLASH:=$(BIN)$/broffice$/intro.zip
178 BROFFICEDEVNOLOGOSPLASH:=$(BIN)$/broffice_dev$/intro.zip
179 MSIOFFICETEMPLATEDIR=$(MISC)$/openoffice$/msi_templates
180 MSILANGPACKTEMPLATEDIR=$(MISC)$/ooolangpack$/msi_templates
181 MSIURETEMPLATEDIR=$(MISC)$/ure$/msi_templates
182 MSISDKOOTEMPLATEDIR=$(MISC)$/sdkoo$/msi_templates
184 ADDDEPS=$(NOLOGOSPLASH) $(DEVNOLOGOSPLASH) $(BROFFICENOLOGOSPLASH) $(BROFFICEDEVNOLOGOSPLASH)
185 .IF "$(OS)" == "WNT"
186 ADDDEPS+=hack_msitemplates
187 .ENDIF
189 $(foreach,i,$(alllangiso) openoffice_$i) : $(ADDDEPS)
191 $(foreach,i,$(alllangiso) openofficedev_$i) : $(ADDDEPS)
193 $(foreach,i,$(alllangiso) openofficewithjre_$i) : $(ADDDEPS)
195 $(foreach,i,$(alllangiso) ooolanguagepack_$i) : $(ADDDEPS)
197 $(foreach,i,$(alllangiso) ooodevlanguagepack_$i) : $(ADDDEPS)
199 $(foreach,i,$(alllangiso) sdkoo_$i) : $(ADDDEPS)
201 $(foreach,i,$(alllangiso) sdkoodev_$i) : $(ADDDEPS)
203 $(foreach,i,$(alllangiso) ure_$i) : $(ADDDEPS)
205 $(foreach,i,$(alllangiso) broffice_$i) : $(ADDDEPS)
207 $(foreach,i,$(alllangiso) brofficedev_$i) : $(ADDDEPS)
209 $(foreach,i,$(alllangiso) brofficewithjre_$i) : $(ADDDEPS)
211 $(foreach,i,$(alllangiso) broolanguagepack_$i) : $(ADDDEPS)
213 .IF "$(MAKETARGETS)"!=""
214 $(MAKETARGETS) : $(ADDDEPS)
215 .ENDIF # "$(MAKETARGETS)"!=""
217 .ENDIF # "$(BUILD_SPECIAL)"!=""
219 .IF "$(OS)" == "MACOSX"
220 DMGDEPS=$(BIN)$/{osxdndinstall.png DS_Store DS_Store_Langpack}
221 $(foreach,i,$(alllangiso) {openoffice openofficedev openofficewithjre ooolanguagepack broffice brofficedev brofficewithjre}_$i) : $(DMGDEPS)
223 BUILDROOT_LANGPACK=$(subst,$(@:s/_/ /:1)_,$(OUT)$/OpenOffice_languagepack$/install$/ $(@:b))
224 OOO_PKG_VERSION:=$(shell sed -n '/^OpenOffice$$/,/^}$$/ s/^[[:space:]]*PACKAGEVERSION //p' openoffice.lst)
225 MAC_APPDIR:=$(shell sed -n '/^OpenOffice$$/,/^}$$/ s/.*PRODUCTNAME //p' openoffice.lst).app
226 .ENDIF # "$(OS)"=="MACOSX"
228 .IF "$(PKGFORMAT)"!=""
229 $(foreach,i,$(alllangiso) openoffice_$i) : $$@{$(PKGFORMAT:^".")}
230 .IF "$(MAKETARGETS)"!="" && "$(PKGFORMAT)"!=""
231 .IF "$(MAKETARGETS:e)"=="" && "$(MAKETARGETS:s/_//)"!="$(MAKETARGETS)"
232 $(MAKETARGETS) : $$@{$(PKGFORMAT:^".")}
233 $(MAKETARGETS){$(PKGFORMAT:^".")} : $(ADDDEPS)
234 .ENDIF # "$(MAKETARGETS:e)"=="" && "$(MAKETARGETS:s/_//)"!="$(MAKETARGETS)"
235 .ENDIF # "$(MAKETARGETS)"!="" && "$(PKGFORMAT)"!=""
236 openoffice_%{$(PKGFORMAT:^".")} :
237 .ELSE # "$(PKGFORMAT)"!=""
238 openoffice_% :
239 .ENDIF # "$(PKGFORMAT)"!=""
240 $(PERL) -w $(SOLARENV)$/bin$/make_installer.pl -f $(PRJ)$/util$/openoffice.lst -l $(subst,$(@:s/_/ /:1)_, $(@:b)) -p OpenOffice -u $(OUT) -buildid $(BUILD) -msitemplate $(MSIOFFICETEMPLATEDIR) -msilanguage $(COMMONMISC)$/win_ulffiles $(subst,xxx,$(@:e:s/.//) $(PKGFORMATSWITCH) $(VERBOSESWITCH))
241 $(PERL) -w $(SOLARENV)$/bin$/gen_update_info.pl --buildid $(BUILD) --arch "$(RTL_ARCH)" --os "$(RTL_OS)" --lstfile $(PRJ)$/util$/openoffice.lst --product OpenOffice --languages $(subst,$(@:s/_/ /:1)_, $(@:b)) $(PRJ)$/util$/update.xml > $(MISC)/$(@:b)_$(RTL_OS)_$(RTL_ARCH)$(@:e).update.xml
243 .IF "$(PKGFORMAT)"!=""
244 $(foreach,i,$(alllangiso) openofficewithjre_$i) : $$@{$(PKGFORMAT:^".")}
245 openofficewithjre_%{$(PKGFORMAT:^".")} :
246 .ELSE # "$(PKGFORMAT)"!=""
247 openofficewithjre_% :
248 .ENDIF # "$(PKGFORMAT)"!=""
249 $(PERL) -w $(SOLARENV)$/bin$/make_installer.pl -f $(PRJ)$/util$/openoffice.lst -l $(subst,$(@:s/_/ /:1)_, $(@:b)) -p OpenOffice_wJRE -u $(OUT) -buildid $(BUILD) -msitemplate $(MSIOFFICETEMPLATEDIR) -msilanguage $(COMMONMISC)$/win_ulffiles $(subst,xxx,$(@:e:s/.//) $(PKGFORMATSWITCH) $(VERBOSESWITCH))
251 .IF "$(PKGFORMAT)"!=""
252 $(foreach,i,$(alllangiso) openofficedev_$i) : $$@{$(PKGFORMAT:^".")}
253 openofficedev_%{$(PKGFORMAT:^".")} :
254 .ELSE # "$(PKGFORMAT)"!=""
255 openofficedev_% :
256 .ENDIF # "$(PKGFORMAT)"!=""
257 $(PERL) -w $(SOLARENV)$/bin$/make_installer.pl -f $(PRJ)$/util$/openoffice.lst -l $(subst,$(@:s/_/ /:1)_, $(@:b)) -p OpenOffice_Dev -u $(OUT) -buildid $(BUILD) -msitemplate $(MSIOFFICETEMPLATEDIR) -msilanguage $(COMMONMISC)$/win_ulffiles $(subst,xxx,$(@:e:s/.//) $(PKGFORMATSWITCH) $(VERBOSESWITCH))
258 $(PERL) -w $(SOLARENV)$/bin$/gen_update_info.pl --buildid $(BUILD) --arch "$(RTL_ARCH)" --os "$(RTL_OS)" --lstfile $(PRJ)$/util$/openoffice.lst --product OpenOffice_Dev --languages $(subst,$(@:s/_/ /:1)_, $(@:b)) $(PRJ)$/util$/update.xml > $(MISC)/$(@:b)_$(RTL_OS)_$(RTL_ARCH)$(@:e).update.xml
260 .IF "$(PKGFORMAT)"!=""
261 $(foreach,i,$(alllangiso) ooolanguagepack_$i) : $$@{$(PKGFORMAT:^".")}
262 ooolanguagepack_%{$(PKGFORMAT:^".")} :
263 .ELSE # "$(PKGFORMAT)"!=""
264 ooolanguagepack_% :
265 .ENDIF # "$(PKGFORMAT)"!=""
266 .IF "$(OS)"!="MACOSX"
267 $(PERL) -w $(SOLARENV)$/bin$/make_installer.pl -f $(PRJ)$/util$/openoffice.lst -l $(subst,$(@:s/_/ /:1)_, $(@:b)) -p OpenOffice -u $(OUT) -buildid $(BUILD) -msitemplate $(MSILANGPACKTEMPLATEDIR) -msilanguage $(COMMONMISC)$/win_ulffiles -languagepack $(subst,xxx,$(@:e:s/.//) $(PKGFORMATSWITCH) $(VERBOSESWITCH))
268 .ELSE # "$(OS)"!="MACOSX"
269 $(PERL) -w $(SOLARENV)$/bin$/make_installer.pl -f $(PRJ)$/util$/openoffice.lst -l $(subst,$(@:s/_/ /:1)_, $(@:b)) -p OpenOffice -u $(OUT) -buildid $(BUILD) -languagepack -destdir $(BUILDROOT_LANGPACK)_inprogress$/ -simple staging
270 $(MKDIRHIER) $(BUILDROOT_LANGPACK)$/staging$/"OpenOffice.org Languagepack.app"$/Contents
271 $(COPY) $(PRJ)$/res$/osx_langpackinstall.sh $(BUILDROOT_LANGPACK)$/staging$/"OpenOffice.org Languagepack.app"$/Contents$/"OpenOffice.org Languagepack"
272 $(COPY) $(PRJ)$/res$/osx_langpackinstall.applescript $(BUILDROOT_LANGPACK)$/staging$/"OpenOffice.org Languagepack.app"$/Contents$/
273 chmod a+x $(BUILDROOT_LANGPACK)$/staging$/"OpenOffice.org Languagepack.app"$/Contents$/"OpenOffice.org Languagepack"
274 chmod a+x $(BUILDROOT_LANGPACK)$/staging$/"OpenOffice.org Languagepack.app"$/Contents$/osx_langpackinstall.applescript
275 tar -cjf $(BUILDROOT_LANGPACK)$/staging$/"OpenOffice.org Languagepack.app"$/Contents$/tarball.tar.bz2 -C $(BUILDROOT_LANGPACK)$/staging$/"$(MAC_APPDIR)" Contents
276 $(RM) -r $(BUILDROOT_LANGPACK)$/staging$/"$(MAC_APPDIR)"
277 cd $(BUILDROOT_LANGPACK) && hdiutil makehybrid -hfs -hfs-openfolder staging staging \
278 -hfs-volume-name "OpenOffice.org Languagepack" -ov -o tmp && hdiutil convert -ov -format UDZO tmp.dmg \
279 -o $(subst,$(@:s/_/ /:1),OpenOffice.org-langpack-$(OOO_PKG_VERSION) $(@:b)) && $(RM) tmp.dmg
280 $(RM) -r $(BUILDROOT_LANGPACK)$/staging
281 .ENDIF # "$(OS)"!="MACOSX"
283 .IF "$(PKGFORMAT)"!=""
284 $(foreach,i,$(alllangiso) ooodevlanguagepack_$i) : $$@{$(PKGFORMAT:^".")}
285 ooodevlanguagepack_%{$(PKGFORMAT:^".")} :
286 .ELSE # "$(PKGFORMAT)"!=""
287 ooodevlanguagepack_% :
288 .ENDIF # "$(PKGFORMAT)"!=""
289 $(PERL) -w $(SOLARENV)$/bin$/make_installer.pl -f $(PRJ)$/util$/openoffice.lst -l $(subst,$(@:s/_/ /:1)_, $(@:b)) -p OpenOffice_Dev -u $(OUT) -buildid $(BUILD) -msitemplate $(MSILANGPACKTEMPLATEDIR) -msilanguage $(COMMONMISC)$/win_ulffiles -languagepack $(subst,xxx,$(@:e:s/.//) $(PKGFORMATSWITCH) $(VERBOSESWITCH))
291 .IF "$(PKGFORMAT)"!=""
292 $(foreach,i,$(alllangiso) sdkoo_$i) : $$@{$(PKGFORMAT:^".")}
293 sdkoo_%{$(PKGFORMAT:^".")} :
294 .ELSE # "$(PKGFORMAT)"!=""
295 sdkoo_% :
296 .ENDIF # "$(PKGFORMAT)"!=""
297 $(PERL) -w $(SOLARENV)$/bin$/make_installer.pl -f $(PRJ)$/util$/openoffice.lst -l $(subst,$(@:s/_/ /:1)_, $(@:b)) -p OpenOffice_SDK -u $(OUT) -buildid $(BUILD) -msitemplate $(MSISDKOOTEMPLATEDIR) -msilanguage $(COMMONMISC)$/win_ulffiles $(subst,xxx,$(@:e:s/.//) -dontstrip $(PKGFORMATSWITCH) $(VERBOSESWITCH))
299 .IF "$(PKGFORMAT)"!=""
300 $(foreach,i,$(alllangiso) sdkoodev_$i) : $$@{$(PKGFORMAT:^".")}
301 sdkoodev_%{$(PKGFORMAT:^".")} :
302 .ELSE # "$(PKGFORMAT)"!=""
303 sdkoodev_% :
304 .ENDIF # "$(PKGFORMAT)"!=""
305 $(PERL) -w $(SOLARENV)$/bin$/make_installer.pl -f $(PRJ)$/util$/openoffice.lst -l $(subst,$(@:s/_/ /:1)_, $(@:b)) -p OpenOffice_Dev_SDK -u $(OUT) -buildid $(BUILD) -msitemplate $(MSISDKOOTEMPLATEDIR) -msilanguage $(COMMONMISC)$/win_ulffiles $(subst,xxx,$(@:e:s/.//) -dontstrip $(PKGFORMATSWITCH) $(VERBOSESWITCH))
307 .IF "$(PKGFORMAT)"!=""
308 $(foreach,i,$(alllangiso) ure_$i) : $$@{$(PKGFORMAT:^".")}
309 ure_%{$(PKGFORMAT:^".")} :
310 .ELSE # "$(PKGFORMAT)"!=""
311 ure_% :
312 .ENDIF # "$(PKGFORMAT)"!=""
313 .IF "$(OS)" == "MACOSX"
314 @echo 'for now, there is no standalone URE for Mac OS X'
315 .ELSE
316 $(PERL) -w $(SOLARENV)$/bin$/make_installer.pl -f $(PRJ)$/util$/openoffice.lst \
317 -l $(subst,$(@:s/_/ /:1)_, $(@:b)) -p URE -u $(OUT) -buildid $(BUILD) $(subst,xxx,$(@:e:s/.//) $(PKGFORMATSWITCH) $(VERBOSESWITCH)) \
318 -msitemplate $(MSIURETEMPLATEDIR) \
319 -msilanguage $(COMMONMISC)$/win_ulffiles
320 .ENDIF
322 .IF "$(PKGFORMAT)"!=""
323 $(foreach,i,$(alllangiso) broffice_$i) : $$@{$(PKGFORMAT:^".")}
324 .IF "$(MAKETARGETS)"!="" && "$(PKGFORMAT)"!=""
325 .IF "$(MAKETARGETS:e)"=="" && "$(MAKETARGETS:s/_//)"!="$(MAKETARGETS)"
326 $(MAKETARGETS) : $$@{$(PKGFORMAT:^".")}
327 $(MAKETARGETS){$(PKGFORMAT:^".")} : $(ADDDEPS)
328 .ENDIF # "$(MAKETARGETS:e)"=="" && "$(MAKETARGETS:s/_//)"!="$(MAKETARGETS)"
329 .ENDIF # "$(MAKETARGETS)"!="" && "$(PKGFORMAT)"!=""
330 broffice_%{$(PKGFORMAT:^".")} :
331 .ELSE # "$(PKGFORMAT)"!=""
332 broffice_% :
333 .ENDIF # "$(PKGFORMAT)"!=""
334 +$(PERL) -w $(SOLARENV)$/bin$/make_installer.pl -f $(PRJ)$/util$/openoffice.lst -l $(subst,$(@:s/_/ /:1)_, $(@:b)) -p BrOffice -u $(OUT) -buildid $(BUILD) -msitemplate $(MSIOFFICETEMPLATEDIR) -msilanguage $(COMMONMISC)$/win_ulffiles $(subst,xxx,$(@:e:s/.//) $(PKGFORMATSWITCH) $(VERBOSESWITCH))
335 $(PERL) -w $(SOLARENV)$/bin$/gen_update_info.pl --buildid $(BUILD) --arch "$(RTL_ARCH)" --os "$(RTL_OS)" --lstfile $(PRJ)$/util$/openoffice.lst --product BrOffice --languages $(subst,$(@:s/_/ /:1)_, $(@:b)) $(PRJ)$/util$/update.xml > $(MISC)/$(@:b)_$(RTL_OS)_$(RTL_ARCH)$(@:e).update.xml
337 .IF "$(PKGFORMAT)"!=""
338 $(foreach,i,$(alllangiso) brofficewithjre_$i) : $$@{$(PKGFORMAT:^".")}
339 brofficewithjre_%{$(PKGFORMAT:^".")} :
340 .ELSE # "$(PKGFORMAT)"!=""
341 brofficewithjre_% :
342 .ENDIF # "$(PKGFORMAT)"!=""
343 +$(PERL) -w $(SOLARENV)$/bin$/make_installer.pl -f $(PRJ)$/util$/openoffice.lst -l $(subst,$(@:s/_/ /:1)_, $(@:b)) -p BrOffice_wJRE -u $(OUT) -buildid $(BUILD) -msitemplate $(MSIOFFICETEMPLATEDIR) -msilanguage $(COMMONMISC)$/win_ulffiles $(subst,xxx,$(@:e:s/.//) $(PKGFORMATSWITCH) $(VERBOSESWITCH))
345 .IF "$(PKGFORMAT)"!=""
346 $(foreach,i,$(alllangiso) brofficedev_$i) : $$@{$(PKGFORMAT:^".")}
347 brofficedev_%{$(PKGFORMAT:^".")} :
348 .ELSE # "$(PKGFORMAT)"!=""
349 brofficedev_% :
350 .ENDIF # "$(PKGFORMAT)"!=""
351 +$(PERL) -w $(SOLARENV)$/bin$/make_installer.pl -f $(PRJ)$/util$/openoffice.lst -l $(subst,$(@:s/_/ /:1)_, $(@:b)) -p BrOffice_Dev -u $(OUT) -buildid $(BUILD) -msitemplate $(MSIOFFICETEMPLATEDIR) -msilanguage $(COMMONMISC)$/win_ulffiles $(subst,xxx,$(@:e:s/.//) $(PKGFORMATSWITCH) $(VERBOSESWITCH))
352 $(PERL) -w $(SOLARENV)$/bin$/gen_update_info.pl --buildid $(BUILD) --arch "$(RTL_ARCH)" --os "$(RTL_OS)" --lstfile $(PRJ)$/util$/openoffice.lst --product BrOffice_Dev --languages $(subst,$(@:s/_/ /:1)_, $(@:b)) $(PRJ)$/util$/update.xml > $(MISC)/$(@:b)_$(RTL_OS)_$(RTL_ARCH)$(@:e).update.xml
354 .IF "$(PKGFORMAT)"!=""
355 $(foreach,i,$(alllangiso) broolanguagepack_$i) : $$@{$(PKGFORMAT:^".")}
356 broolanguagepack_%{$(PKGFORMAT:^".")} :
357 .ELSE # "$(PKGFORMAT)"!=""
358 broolanguagepack_% :
359 .ENDIF # "$(PKGFORMAT)"!=""
360 +$(PERL) -w $(SOLARENV)$/bin$/make_installer.pl -f $(PRJ)$/util$/openoffice.lst -l $(subst,$(@:s/_/ /:1)_, $(@:b)) -p BrOffice -u $(OUT) -buildid $(BUILD) -msitemplate $(MSILANGPACKTEMPLATEDIR) -msilanguage $(COMMONMISC)$/win_ulffiles -languagepack $(subst,xxx,$(@:e:s/.//) $(PKGFORMATSWITCH) $(VERBOSESWITCH))
362 .ELSE # "$(alllangiso)"!=""
363 openoffice:
364 @echo cannot pack nothing...
366 .ENDIF # "$(alllangiso)"!=""
368 .IF "$(LOCALPYFILES)"!=""
369 .IF "$(PKGFORMAT)"==""
370 $(foreach,i,$(alllangiso) openoffice_$i openofficewithjre_$i openofficedev_$i broffice_$i brofficewithjre_$i brofficedev_$i ooolanguagepack_$i ooodevlanguagepack_$i sdkoo_$i) updatepack : $(LOCALPYFILES) $(BIN)$/cp1251.py $(BIN)$/iso8859_1.py
371 .ELSE # "$(PKGFORMAT)"==""
372 $(foreach,i,$(alllangiso) openoffice_$i{$(PKGFORMAT:^".")} openofficewithjre_$i{$(PKGFORMAT:^".")} openofficedev_$i{$(PKGFORMAT:^".")} broffice_$i{$(PKGFORMAT:^".")} brofficewithjre_$i{$(PKGFORMAT:^".")} brofficedev_$i{$(PKGFORMAT:^".")} ooolanguagepack_$i{$(PKGFORMAT:^".")} ooodevlanguagepack_$i{$(PKGFORMAT:^".")} sdkoo_$i{$(PKGFORMAT:^".")}) updatepack : $(LOCALPYFILES) $(BIN)$/cp1251.py $(BIN)$/iso8859_1.py
373 .ENDIF # "$(PKGFORMAT)"==""
374 .ENDIF # "$(LOCALPYFILES)"!=""
376 $(BIN)$/%.py : $(SOLARSHAREDBIN)$/pyuno$/%.py
377 @$(COPY) $< $@
379 .IF "$(SYSTEM_PYTHON)" != "YES"
380 $(BIN)$/cp1251.py : $(SOLARLIBDIR)$/python$/encodings$/cp1251.py
381 @$(COPY) $< $@
382 $(BIN)$/iso8859_1.py : $(SOLARLIBDIR)$/python$/encodings$/iso8859_1.py
383 @$(COPY) $< $@
384 .ELSE
385 $(BIN)$/cp1251.py :
386 @echo "Using system python - nothing more to do here"
387 $(BIN)$/iso8859_1.py :
388 @echo "Using system python - nothing more to do here"
389 .ENDIF
391 $(BIN)$/intro.zip : $(SOLARCOMMONPCKDIR)$/openoffice_nologo$/intro.zip
392 $(COPY) $< $@
394 $(BIN)$/dev$/intro.zip : $(SOLARCOMMONPCKDIR)$/openoffice_dev_nologo$/intro.zip
395 @-$(MKDIR) $(@:d)
396 $(COPY) $< $@
398 $(BIN)$/broffice_dev$/intro.zip : $(SOLARCOMMONPCKDIR)$/broffice_dev_nologo$/intro.zip
399 @-$(MKDIR) $(@:d)
400 $(COPY) $< $@
402 $(BIN)$/broffice$/intro.zip : $(SOLARCOMMONPCKDIR)$/broffice_nologo$/intro.zip
403 @-$(MKDIR) $(@:d)
404 $(COPY) $< $@
406 $(BIN)$/{osxdndinstall.png DS_Store DS_Store_Langpack} : $(PRJ)$/res$/$$(@:f)
407 @$(COPY) $< $@
409 hack_msitemplates .PHONY:
410 -$(MKDIRHIER) $(MSIOFFICETEMPLATEDIR)
411 -$(MKDIRHIER) $(MSILANGPACKTEMPLATEDIR)
412 -$(MKDIRHIER) $(MSIURETEMPLATEDIR)
413 -$(MKDIRHIER) $(MSISDKOOTEMPLATEDIR)
414 -$(MKDIRHIER) $(MSIOFFICETEMPLATEDIR)$/Binary
415 -$(MKDIRHIER) $(MSILANGPACKTEMPLATEDIR)$/Binary
416 -$(MKDIRHIER) $(MSIURETEMPLATEDIR)$/Binary
417 -$(MKDIRHIER) $(MSISDKOOTEMPLATEDIR)$/Binary
418 $(GNUCOPY) -u $(MSIOFFICETEMPLATESOURCE)$/*.* $(MSIOFFICETEMPLATEDIR)
419 $(GNUCOPY) -u $(MSILANGPACKTEMPLATESOURCE)$/*.* $(MSILANGPACKTEMPLATEDIR)
420 $(GNUCOPY) -u $(MSIURETEMPLATESOURCE)$/*.* $(MSIURETEMPLATEDIR)
421 $(GNUCOPY) -u $(MSISDKOOTEMPLATESOURCE)$/*.* $(MSISDKOOTEMPLATEDIR)
422 $(GNUCOPY) -u $(MSIOFFICETEMPLATESOURCE)$/Binary$/*.* $(MSIOFFICETEMPLATEDIR)$/Binary
423 $(GNUCOPY) -u $(MSILANGPACKTEMPLATESOURCE)$/Binary$/*.* $(MSILANGPACKTEMPLATEDIR)$/Binary
424 $(GNUCOPY) -u $(MSIURETEMPLATESOURCE)$/Binary$/*.* $(MSIURETEMPLATEDIR)$/Binary
425 $(GNUCOPY) -u $(MSISDKOOTEMPLATESOURCE)$/Binary$/*.* $(MSISDKOOTEMPLATEDIR)$/Binary
426 $(RM) $(MSIOFFICETEMPLATEDIR)$/Binary$/Image.bmp
427 $(RM) $(MSILANGPACKTEMPLATEDIR)$/Binary$/Image.bmp
428 $(RM) $(MSIURETEMPLATEDIR)$/Binary$/Image.bmp
429 $(RM) $(MSISDKOOTEMPLATEDIR)$/Binary$/Image.bmp
430 $(COPY) $(PRJ)$/res$/nologoinstall.bmp $(MSIOFFICETEMPLATEDIR)$/Binary$/Image.bmp
431 $(COPY) $(PRJ)$/res$/nologoinstall.bmp $(MSILANGPACKTEMPLATEDIR)$/Binary$/Image.bmp
432 $(COPY) $(PRJ)$/res$/nologoinstall.bmp $(MSIURETEMPLATEDIR)$/Binary$/Image.bmp
433 $(COPY) $(PRJ)$/res$/nologoinstall.bmp $(MSISDKOOTEMPLATEDIR)$/Binary$/Image.bmp