1*cdf0e10cSrcweir#*************************************************************************
2*cdf0e10cSrcweir#
3*cdf0e10cSrcweir# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir#
5*cdf0e10cSrcweir# Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir#
7*cdf0e10cSrcweir# OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir#
9*cdf0e10cSrcweir# This file is part of OpenOffice.org.
10*cdf0e10cSrcweir#
11*cdf0e10cSrcweir# OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir# it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir# only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir#
15*cdf0e10cSrcweir# OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir# but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir# GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir# (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir#
21*cdf0e10cSrcweir# You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir# version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir# <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir# for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir#
26*cdf0e10cSrcweir#*************************************************************************
27*cdf0e10cSrcweir
28*cdf0e10cSrcweirPRJ=..
29*cdf0e10cSrcweirPRJNAME=instsetoo_native
30*cdf0e10cSrcweirTARGET=util
31*cdf0e10cSrcweir
32*cdf0e10cSrcweir.INCLUDE:  settings.mk
33*cdf0e10cSrcweir.INCLUDE: $(SOLARINCDIR)$/rtlbootstrap.mk
34*cdf0e10cSrcweir
35*cdf0e10cSrcweir# PERL:=@echo
36*cdf0e10cSrcweir
37*cdf0e10cSrcweir# watch for the path delimiter
38*cdf0e10cSrcweir.IF "$(GUI)"=="WNT"
39*cdf0e10cSrcweirPYTHONPATH:=$(PWD)$/$(BIN);$(SOLARLIBDIR);$(SOLARLIBDIR)$/python;$(SOLARLIBDIR)$/python$/lib-dynload
40*cdf0e10cSrcweir.ELSE			# "$(GUI)"=="WNT"
41*cdf0e10cSrcweirPYTHONPATH:=$(PWD)$/$(BIN):$(SOLARLIBDIR):$(SOLARLIBDIR)$/python:$(SOLARLIBDIR)$/python$/lib-dynload
42*cdf0e10cSrcweir.ENDIF			# "$(GUI)"=="WNT"
43*cdf0e10cSrcweir.EXPORT: PYTHONPATH
44*cdf0e10cSrcweir
45*cdf0e10cSrcweir.IF "$(CWS_WORK_STAMP)"=="" || "$(UPDATER)"!=""
46*cdf0e10cSrcweirENABLE_DOWNLOADSETS*=TRUE
47*cdf0e10cSrcweir.ENDIF			# "$(CWS_WORK_STAMP)"=="" || "$(UPDATER)"!=""
48*cdf0e10cSrcweir.IF "$(FORCE_DOWNLOADSETS)"!=""
49*cdf0e10cSrcweirENABLE_DOWNLOADSETS=TRUE
50*cdf0e10cSrcweir.ENDIF			# "$(FORCE_DOWNLOADSETS)"!=""
51*cdf0e10cSrcweir
52*cdf0e10cSrcweir.EXPORT: ENABLE_DOWNLOADSETS
53*cdf0e10cSrcweir.EXPORT: LAST_MINOR
54*cdf0e10cSrcweir.EXPORT: PRJ
55*cdf0e10cSrcweir.EXPORT: PRJNAME
56*cdf0e10cSrcweir
57*cdf0e10cSrcweir.IF "$(OS)"=="LINUX"
58*cdf0e10cSrcweirDONT_REMOVE_PACKAGE:=TRUE
59*cdf0e10cSrcweir.EXPORT: DONT_REMOVE_PACKAGE
60*cdf0e10cSrcweir.ENDIF          # "$(OS)"=="LINUX"
61*cdf0e10cSrcweir
62*cdf0e10cSrcweir.INCLUDE .IGNORE: $(SRC_ROOT)$/cwsname.mk
63*cdf0e10cSrcweir
64*cdf0e10cSrcweirSHARED_COM_SDK_PATH*:=.
65*cdf0e10cSrcweir
66*cdf0e10cSrcweirINSTALLDIR=$(OUT)
67*cdf0e10cSrcweir
68*cdf0e10cSrcweir.INCLUDE: target.mk
69*cdf0e10cSrcweir
70*cdf0e10cSrcweirLOCALPYFILES= \
71*cdf0e10cSrcweir    $(BIN)$/uno.py \
72*cdf0e10cSrcweir	$(BIN)$/unohelper.py \
73*cdf0e10cSrcweir	$(BIN)$/pythonloader.py \
74*cdf0e10cSrcweir	$(BIN)$/pythonscript.py \
75*cdf0e10cSrcweir	$(BIN)$/officehelper.py \
76*cdf0e10cSrcweir	$(BIN)$/mailmerge.py
77*cdf0e10cSrcweir
78*cdf0e10cSrcweirxxxx:
79*cdf0e10cSrcweir    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
80*cdf0e10cSrcweir
81*cdf0e10cSrcweir.IF "$(GUI)"!="WNT" && "$(EPM)"=="NO" && "$(USE_PACKAGER)"==""
82*cdf0e10cSrcweirALLTAR  : $(LOCALPYFILES)
83*cdf0e10cSrcweir	@echo "No EPM: do no packaging at this stage"
84*cdf0e10cSrcweir.ELSE			# "$(GUI)"!="WNT" && "$(EPM)"=="NO" && "$(USE_PACKAGER)"==""
85*cdf0e10cSrcweir.IF "$(UPDATER)"=="" || "$(USE_PACKAGER)"==""
86*cdf0e10cSrcweir.IF "$(BUILD_TYPE)"=="$(BUILD_TYPE:s/ODK//)"
87*cdf0e10cSrcweirALLTAR : openoffice
88*cdf0e10cSrcweir.ELSE
89*cdf0e10cSrcweirALLTAR : openoffice sdkoo_en-US ure_en-US
90*cdf0e10cSrcweir.ENDIF
91*cdf0e10cSrcweir.ELSE			# "$(UPDATER)"=="" || "$(USE_PACKAGER)"==""
92*cdf0e10cSrcweirALLTAR : updatepack
93*cdf0e10cSrcweir.ENDIF			# "$(UPDATER)"=="" || "$(USE_PACKAGER)"==""
94*cdf0e10cSrcweir.ENDIF			# "$(GUI)"!="WNT" && "$(EPM)"=="NO" && "$(USE_PACKAGER)"==""
95*cdf0e10cSrcweir
96*cdf0e10cSrcweir.IF "$(FORCE2ARCHIVE)" == "TRUE"
97*cdf0e10cSrcweirPKGFORMAT = archive
98*cdf0e10cSrcweir.END
99*cdf0e10cSrcweir
100*cdf0e10cSrcweir.IF "$(MAKETARGETS:e)"!=""
101*cdf0e10cSrcweirPKGFORMAT+=$(MAKETARGETS:e:s/.//)
102*cdf0e10cSrcweir.ENDIF			# "$(MAKETARGETS:e)"!=""
103*cdf0e10cSrcweir
104*cdf0e10cSrcweir# Independent of PKGFORMAT, always build a default-language openoffice product
105*cdf0e10cSrcweir# also in archive format, so that tests that require an OOo installation (like
106*cdf0e10cSrcweir# smoketestoo_native) have one available:
107*cdf0e10cSrcweiropenoffice_$(defaultlangiso) : $$@.archive
108*cdf0e10cSrcweir
109*cdf0e10cSrcweir.IF "$(VERBOSE)"=="TRUE"
110*cdf0e10cSrcweirVERBOSESWITCH=-verbose
111*cdf0e10cSrcweir.ENDIF
112*cdf0e10cSrcweir.IF "$(VERBOSE)"=="FALSE"
113*cdf0e10cSrcweirVERBOSESWITCH=-quiet
114*cdf0e10cSrcweir.ENDIF
115*cdf0e10cSrcweir
116*cdf0e10cSrcweirupdatepack:
117*cdf0e10cSrcweir	$(PERL) -w $(SOLARENV)$/bin$/packager.pl
118*cdf0e10cSrcweir
119*cdf0e10cSrcweir.IF "$(alllangiso)"!=""
120*cdf0e10cSrcweir
121*cdf0e10cSrcweiropenoffice: $(foreach,i,$(alllangiso) openoffice_$i)
122*cdf0e10cSrcweir
123*cdf0e10cSrcweiropenofficedev: $(foreach,i,$(alllangiso) openofficedev_$i)
124*cdf0e10cSrcweir
125*cdf0e10cSrcweiropenofficewithjre: $(foreach,i,$(alllangiso) openofficewithjre_$i)
126*cdf0e10cSrcweir
127*cdf0e10cSrcweirooolanguagepack : $(foreach,i,$(alllangiso) ooolanguagepack_$i)
128*cdf0e10cSrcweir
129*cdf0e10cSrcweirooodevlanguagepack: $(foreach,i,$(alllangiso) ooodevlanguagepack_$i)
130*cdf0e10cSrcweir
131*cdf0e10cSrcweirsdkoo: $(foreach,i,$(alllangiso) sdkoo_$i)
132*cdf0e10cSrcweir
133*cdf0e10cSrcweirsdkoodev: $(foreach,i,$(alllangiso) sdkoodev_$i)
134*cdf0e10cSrcweir
135*cdf0e10cSrcweirure: $(foreach,i,$(alllangiso) ure_$i)
136*cdf0e10cSrcweir
137*cdf0e10cSrcweirbroffice: $(foreach,i,$(alllangiso) broffice_$i)
138*cdf0e10cSrcweir
139*cdf0e10cSrcweirbrofficedev: $(foreach,i,$(alllangiso) brofficedev_$i)
140*cdf0e10cSrcweir
141*cdf0e10cSrcweirbrofficewithjre: $(foreach,i,$(alllangiso) brofficewithjre_$i)
142*cdf0e10cSrcweir
143*cdf0e10cSrcweirbroolanguagepack : $(foreach,i,$(alllangiso) broolanguagepack_$i)
144*cdf0e10cSrcweir
145*cdf0e10cSrcweirMSIOFFICETEMPLATESOURCE=$(PRJ)$/inc_openoffice$/windows$/msi_templates
146*cdf0e10cSrcweirMSILANGPACKTEMPLATESOURCE=$(PRJ)$/inc_ooolangpack$/windows$/msi_templates
147*cdf0e10cSrcweirMSIURETEMPLATESOURCE=$(PRJ)$/inc_ure$/windows$/msi_templates
148*cdf0e10cSrcweirMSISDKOOTEMPLATESOURCE=$(PRJ)$/inc_sdkoo$/windows$/msi_templates
149*cdf0e10cSrcweir
150*cdf0e10cSrcweir.IF "$(BUILD_SPECIAL)"!=""
151*cdf0e10cSrcweirMSIOFFICETEMPLATEDIR=$(MSIOFFICETEMPLATESOURCE)
152*cdf0e10cSrcweirMSILANGPACKTEMPLATEDIR=$(MSILANGPACKTEMPLATESOURCE)
153*cdf0e10cSrcweirMSIURETEMPLATEDIR=$(MSIURETEMPLATESOURCE)
154*cdf0e10cSrcweirMSISDKOOTEMPLATEDIR=$(MSISDKOOTEMPLATESOURCE)
155*cdf0e10cSrcweir.ELSE			# "$(BUILD_SPECIAL)"!=""
156*cdf0e10cSrcweirNOLOGOSPLASH:=$(BIN)$/intro.zip
157*cdf0e10cSrcweirDEVNOLOGOSPLASH:=$(BIN)$/dev$/intro.zip
158*cdf0e10cSrcweirBROFFICENOLOGOSPLASH:=$(BIN)$/broffice$/intro.zip
159*cdf0e10cSrcweirBROFFICENOLOGOBRAND:=$(BIN)$/broffice$/images_brand.zip
160*cdf0e10cSrcweirBROFFICEDEVNOLOGOSPLASH:=$(BIN)$/broffice_dev$/intro.zip
161*cdf0e10cSrcweirBROFFICENDEVOLOGOBRAND:=$(BIN)$/broffice_dev$/images_brand.zip
162*cdf0e10cSrcweirMSIOFFICETEMPLATEDIR=$(MISC)$/openoffice$/msi_templates
163*cdf0e10cSrcweirMSILANGPACKTEMPLATEDIR=$(MISC)$/ooolangpack$/msi_templates
164*cdf0e10cSrcweirMSIURETEMPLATEDIR=$(MISC)$/ure$/msi_templates
165*cdf0e10cSrcweirMSISDKOOTEMPLATEDIR=$(MISC)$/sdkoo$/msi_templates
166*cdf0e10cSrcweir
167*cdf0e10cSrcweirADDDEPS=$(NOLOGOSPLASH) $(DEVNOLOGOSPLASH) $(BROFFICENOLOGOSPLASH) $(BROFFICEDEVNOLOGOSPLASH) \
168*cdf0e10cSrcweir    $(BROFFICENOLOGOBRAND) $(BROFFICEDEVNOLOGOBRAND)
169*cdf0e10cSrcweir.IF "$(OS)" == "WNT"
170*cdf0e10cSrcweirADDDEPS+=hack_msitemplates
171*cdf0e10cSrcweir.ENDIF
172*cdf0e10cSrcweir
173*cdf0e10cSrcweir$(foreach,i,$(alllangiso) openoffice_$i) : $(ADDDEPS)
174*cdf0e10cSrcweiropenoffice_$(defaultlangiso).archive : $(ADDDEPS)
175*cdf0e10cSrcweir
176*cdf0e10cSrcweir$(foreach,i,$(alllangiso) openofficedev_$i) : $(ADDDEPS)
177*cdf0e10cSrcweir
178*cdf0e10cSrcweir$(foreach,i,$(alllangiso) openofficewithjre_$i) : $(ADDDEPS)
179*cdf0e10cSrcweir
180*cdf0e10cSrcweir$(foreach,i,$(alllangiso) ooolanguagepack_$i) : $(ADDDEPS)
181*cdf0e10cSrcweir
182*cdf0e10cSrcweir$(foreach,i,$(alllangiso) ooodevlanguagepack_$i) : $(ADDDEPS)
183*cdf0e10cSrcweir
184*cdf0e10cSrcweir$(foreach,i,$(alllangiso) sdkoo_$i) : $(ADDDEPS)
185*cdf0e10cSrcweir
186*cdf0e10cSrcweir$(foreach,i,$(alllangiso) sdkoodev_$i) : $(ADDDEPS)
187*cdf0e10cSrcweir
188*cdf0e10cSrcweir$(foreach,i,$(alllangiso) ure_$i) : $(ADDDEPS)
189*cdf0e10cSrcweir
190*cdf0e10cSrcweir$(foreach,i,$(alllangiso) broffice_$i) : $(ADDDEPS)
191*cdf0e10cSrcweir
192*cdf0e10cSrcweir$(foreach,i,$(alllangiso) brofficedev_$i) : $(ADDDEPS)
193*cdf0e10cSrcweir
194*cdf0e10cSrcweir$(foreach,i,$(alllangiso) brofficewithjre_$i) : $(ADDDEPS)
195*cdf0e10cSrcweir
196*cdf0e10cSrcweir$(foreach,i,$(alllangiso) broolanguagepack_$i) : $(ADDDEPS)
197*cdf0e10cSrcweir
198*cdf0e10cSrcweir.IF "$(MAKETARGETS)"!=""
199*cdf0e10cSrcweir$(MAKETARGETS) : $(ADDDEPS)
200*cdf0e10cSrcweir.ENDIF			# "$(MAKETARGETS)"!=""
201*cdf0e10cSrcweir
202*cdf0e10cSrcweir.ENDIF			# "$(BUILD_SPECIAL)"!=""
203*cdf0e10cSrcweir
204*cdf0e10cSrcweir$(foreach,i,$(alllangiso) openoffice_$i) : $$@{$(PKGFORMAT:^".")}
205*cdf0e10cSrcweir.IF "$(MAKETARGETS)"!=""
206*cdf0e10cSrcweir.IF "$(MAKETARGETS:e)"=="" && "$(MAKETARGETS:s/_//)"!="$(MAKETARGETS)"
207*cdf0e10cSrcweir$(MAKETARGETS) : $$@{$(PKGFORMAT:^".")}
208*cdf0e10cSrcweir$(MAKETARGETS){$(PKGFORMAT:^".")} : $(ADDDEPS)
209*cdf0e10cSrcweir.ENDIF			# "$(MAKETARGETS:e)"=="" && "$(MAKETARGETS:s/_//)"!="$(MAKETARGETS)"
210*cdf0e10cSrcweir.ENDIF			# "$(MAKETARGETS)"!=""
211*cdf0e10cSrcweiropenoffice_%{$(PKGFORMAT:^".") .archive} :
212*cdf0e10cSrcweir	$(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 $(MISC)$/win_ulffiles -format $(@:e:s/.//) $(VERBOSESWITCH)
213*cdf0e10cSrcweir	$(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
214*cdf0e10cSrcweir
215*cdf0e10cSrcweir$(foreach,i,$(alllangiso) openofficewithjre_$i) : $$@{$(PKGFORMAT:^".")}
216*cdf0e10cSrcweiropenofficewithjre_%{$(PKGFORMAT:^".")} :
217*cdf0e10cSrcweir	$(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 $(MISC)$/win_ulffiles -format $(@:e:s/.//) $(VERBOSESWITCH)
218*cdf0e10cSrcweir
219*cdf0e10cSrcweir$(foreach,i,$(alllangiso) openofficedev_$i) : $$@{$(PKGFORMAT:^".")}
220*cdf0e10cSrcweiropenofficedev_%{$(PKGFORMAT:^".")} :
221*cdf0e10cSrcweir	$(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 $(MISC)$/win_ulffiles -format $(@:e:s/.//) $(VERBOSESWITCH)
222*cdf0e10cSrcweir	$(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
223*cdf0e10cSrcweir
224*cdf0e10cSrcweir$(foreach,i,$(alllangiso) ooolanguagepack_$i) : $$@{$(PKGFORMAT:^".")}
225*cdf0e10cSrcweirooolanguagepack_%{$(PKGFORMAT:^".")} :
226*cdf0e10cSrcweir	$(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 $(MISC)$/win_ulffiles -languagepack -format $(@:e:s/.//) $(VERBOSESWITCH)
227*cdf0e10cSrcweir
228*cdf0e10cSrcweir$(foreach,i,$(alllangiso) ooodevlanguagepack_$i) : $$@{$(PKGFORMAT:^".")}
229*cdf0e10cSrcweirooodevlanguagepack_%{$(PKGFORMAT:^".")} :
230*cdf0e10cSrcweir	$(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 $(MISC)$/win_ulffiles -languagepack -format $(@:e:s/.//) $(VERBOSESWITCH)
231*cdf0e10cSrcweir
232*cdf0e10cSrcweir$(foreach,i,$(alllangiso) sdkoo_$i) : $$@{$(PKGFORMAT:^".")}
233*cdf0e10cSrcweirsdkoo_%{$(PKGFORMAT:^".")} :
234*cdf0e10cSrcweir	$(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 $(MISC)$/win_ulffiles -dontstrip -format $(@:e:s/.//) $(VERBOSESWITCH)
235*cdf0e10cSrcweir
236*cdf0e10cSrcweir$(foreach,i,$(alllangiso) sdkoodev_$i) : $$@{$(PKGFORMAT:^".")}
237*cdf0e10cSrcweirsdkoodev_%{$(PKGFORMAT:^".")} :
238*cdf0e10cSrcweir	$(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 $(MISC)$/win_ulffiles -dontstrip -format $(@:e:s/.//) $(VERBOSESWITCH)
239*cdf0e10cSrcweir
240*cdf0e10cSrcweir$(foreach,i,$(alllangiso) ure_$i) : $$@{$(PKGFORMAT:^".")}
241*cdf0e10cSrcweirure_%{$(PKGFORMAT:^".")} :
242*cdf0e10cSrcweir.IF "$(OS)" == "MACOSX"
243*cdf0e10cSrcweir    @echo 'for now, there is no standalone URE for Mac OS X'
244*cdf0e10cSrcweir.ELSE
245*cdf0e10cSrcweir    $(PERL) -w $(SOLARENV)$/bin$/make_installer.pl -f $(PRJ)$/util$/openoffice.lst \
246*cdf0e10cSrcweir        -l $(subst,$(@:s/_/ /:1)_, $(@:b)) -p URE -u $(OUT) -buildid $(BUILD) -format $(@:e:s/.//) $(VERBOSESWITCH) \
247*cdf0e10cSrcweir        -msitemplate $(MSIURETEMPLATEDIR) \
248*cdf0e10cSrcweir        -msilanguage $(MISC)$/win_ulffiles
249*cdf0e10cSrcweir.ENDIF
250*cdf0e10cSrcweir
251*cdf0e10cSrcweir$(foreach,i,$(alllangiso) broffice_$i) : $$@{$(PKGFORMAT:^".")}
252*cdf0e10cSrcweir.IF "$(MAKETARGETS)"!=""
253*cdf0e10cSrcweir.IF "$(MAKETARGETS:e)"=="" && "$(MAKETARGETS:s/_//)"!="$(MAKETARGETS)"
254*cdf0e10cSrcweir$(MAKETARGETS) : $$@{$(PKGFORMAT:^".")}
255*cdf0e10cSrcweir$(MAKETARGETS){$(PKGFORMAT:^".")} : $(ADDDEPS)
256*cdf0e10cSrcweir.ENDIF			# "$(MAKETARGETS:e)"=="" && "$(MAKETARGETS:s/_//)"!="$(MAKETARGETS)"
257*cdf0e10cSrcweir.ENDIF			# "$(MAKETARGETS)"!=""
258*cdf0e10cSrcweirbroffice_%{$(PKGFORMAT:^".")} :
259*cdf0e10cSrcweir	+$(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 $(MISC)$/win_ulffiles -format $(@:e:s/.//) $(VERBOSESWITCH)
260*cdf0e10cSrcweir	$(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
261*cdf0e10cSrcweir
262*cdf0e10cSrcweir$(foreach,i,$(alllangiso) brofficewithjre_$i) : $$@{$(PKGFORMAT:^".")}
263*cdf0e10cSrcweirbrofficewithjre_%{$(PKGFORMAT:^".")} :
264*cdf0e10cSrcweir	+$(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 $(MISC)$/win_ulffiles -format $(@:e:s/.//) $(VERBOSESWITCH)
265*cdf0e10cSrcweir
266*cdf0e10cSrcweir$(foreach,i,$(alllangiso) brofficedev_$i) : $$@{$(PKGFORMAT:^".")}
267*cdf0e10cSrcweirbrofficedev_%{$(PKGFORMAT:^".")} :
268*cdf0e10cSrcweir	+$(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 $(MISC)$/win_ulffiles -format $(@:e:s/.//) $(VERBOSESWITCH)
269*cdf0e10cSrcweir	$(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
270*cdf0e10cSrcweir
271*cdf0e10cSrcweir$(foreach,i,$(alllangiso) broolanguagepack_$i) : $$@{$(PKGFORMAT:^".")}
272*cdf0e10cSrcweirbroolanguagepack_%{$(PKGFORMAT:^".")} :
273*cdf0e10cSrcweir	+$(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 $(MISC)$/win_ulffiles -languagepack -format $(@:e:s/.//) $(VERBOSESWITCH)
274*cdf0e10cSrcweir
275*cdf0e10cSrcweir.ELSE			# "$(alllangiso)"!=""
276*cdf0e10cSrcweiropenoffice:
277*cdf0e10cSrcweir	@echo cannot pack nothing...
278*cdf0e10cSrcweir
279*cdf0e10cSrcweir.ENDIF			# "$(alllangiso)"!=""
280*cdf0e10cSrcweir
281*cdf0e10cSrcweir.IF "$(LOCALPYFILES)"!=""
282*cdf0e10cSrcweir$(foreach,i,$(alllangiso) openoffice_$i{$(PKGFORMAT:^".") .archive} openofficewithjre_$i{$(PKGFORMAT:^".")} openofficedev_$i{$(PKGFORMAT:^".")} broffice_$i{$(PKGFORMAT:^".")} brofficewithjre_$i{$(PKGFORMAT:^".")} brofficedev_$i{$(PKGFORMAT:^".")} sdkoo_$i{$(PKGFORMAT:^".")}) updatepack : $(LOCALPYFILES)
283*cdf0e10cSrcweir.ENDIF			# "$(LOCALPYFILES)"!=""
284*cdf0e10cSrcweir
285*cdf0e10cSrcweir$(BIN)$/%.py : $(SOLARSHAREDBIN)$/pyuno$/%.py
286*cdf0e10cSrcweir	@$(COPY) $< $@
287*cdf0e10cSrcweir
288*cdf0e10cSrcweir$(BIN)$/intro.zip : $(SOLARCOMMONPCKDIR)$/openoffice_nologo$/intro.zip
289*cdf0e10cSrcweir	$(COPY) $< $@
290*cdf0e10cSrcweir
291*cdf0e10cSrcweir$(BIN)$/dev$/intro.zip : $(SOLARCOMMONPCKDIR)$/openoffice_dev_nologo$/intro.zip
292*cdf0e10cSrcweir	@-$(MKDIR) $(@:d)
293*cdf0e10cSrcweir	$(COPY) $< $@
294*cdf0e10cSrcweir
295*cdf0e10cSrcweir$(BIN)$/broffice_dev$/intro.zip : $(SOLARCOMMONPCKDIR)$/broffice_dev_nologo$/intro.zip
296*cdf0e10cSrcweir	@-$(MKDIR) $(@:d)
297*cdf0e10cSrcweir	$(COPY) $< $@
298*cdf0e10cSrcweir
299*cdf0e10cSrcweir$(BIN)$/broffice$/intro.zip : $(SOLARCOMMONPCKDIR)$/broffice_nologo$/intro.zip
300*cdf0e10cSrcweir	@-$(MKDIR) $(@:d)
301*cdf0e10cSrcweir	$(COPY) $< $@
302*cdf0e10cSrcweir
303*cdf0e10cSrcweir$(BIN)$/broffice$/images_brand.zip : $(SOLARCOMMONBINDIR)$/broffice_nologo$/images_brand.zip
304*cdf0e10cSrcweir	@-$(MKDIR) $(@:d)
305*cdf0e10cSrcweir	$(COPY) $< $@
306*cdf0e10cSrcweir
307*cdf0e10cSrcweirhack_msitemplates .PHONY:
308*cdf0e10cSrcweir	-$(MKDIRHIER) $(MSIOFFICETEMPLATEDIR)
309*cdf0e10cSrcweir	-$(MKDIRHIER) $(MSILANGPACKTEMPLATEDIR)
310*cdf0e10cSrcweir	-$(MKDIRHIER) $(MSIURETEMPLATEDIR)
311*cdf0e10cSrcweir	-$(MKDIRHIER) $(MSISDKOOTEMPLATEDIR)
312*cdf0e10cSrcweir	-$(MKDIRHIER) $(MSIOFFICETEMPLATEDIR)$/Binary
313*cdf0e10cSrcweir	-$(MKDIRHIER) $(MSILANGPACKTEMPLATEDIR)$/Binary
314*cdf0e10cSrcweir	-$(MKDIRHIER) $(MSIURETEMPLATEDIR)$/Binary
315*cdf0e10cSrcweir	-$(MKDIRHIER) $(MSISDKOOTEMPLATEDIR)$/Binary
316*cdf0e10cSrcweir	$(GNUCOPY) -u $(MSIOFFICETEMPLATESOURCE)$/*.* $(MSIOFFICETEMPLATEDIR)
317*cdf0e10cSrcweir	$(GNUCOPY) -u $(MSILANGPACKTEMPLATESOURCE)$/*.* $(MSILANGPACKTEMPLATEDIR)
318*cdf0e10cSrcweir	$(GNUCOPY) -u $(MSIURETEMPLATESOURCE)$/*.* $(MSIURETEMPLATEDIR)
319*cdf0e10cSrcweir	$(GNUCOPY) -u $(MSISDKOOTEMPLATESOURCE)$/*.* $(MSISDKOOTEMPLATEDIR)
320*cdf0e10cSrcweir	$(GNUCOPY) -u $(MSIOFFICETEMPLATESOURCE)$/Binary$/*.* $(MSIOFFICETEMPLATEDIR)$/Binary
321*cdf0e10cSrcweir	$(GNUCOPY) -u $(MSILANGPACKTEMPLATESOURCE)$/Binary$/*.* $(MSILANGPACKTEMPLATEDIR)$/Binary
322*cdf0e10cSrcweir	$(GNUCOPY) -u $(MSIURETEMPLATESOURCE)$/Binary$/*.* $(MSIURETEMPLATEDIR)$/Binary
323*cdf0e10cSrcweir	$(GNUCOPY) -u $(MSISDKOOTEMPLATESOURCE)$/Binary$/*.* $(MSISDKOOTEMPLATEDIR)$/Binary
324*cdf0e10cSrcweir	$(RM) $(MSIOFFICETEMPLATEDIR)$/Binary$/Image.bmp
325*cdf0e10cSrcweir	$(RM) $(MSILANGPACKTEMPLATEDIR)$/Binary$/Image.bmp
326*cdf0e10cSrcweir	$(RM) $(MSIURETEMPLATEDIR)$/Binary$/Image.bmp
327*cdf0e10cSrcweir	$(RM) $(MSISDKOOTEMPLATEDIR)$/Binary$/Image.bmp
328*cdf0e10cSrcweir	$(COPY) $(PRJ)$/res$/nologoinstall.bmp $(MSIOFFICETEMPLATEDIR)$/Binary$/Image.bmp
329*cdf0e10cSrcweir	$(COPY) $(PRJ)$/res$/nologoinstall.bmp $(MSILANGPACKTEMPLATEDIR)$/Binary$/Image.bmp
330*cdf0e10cSrcweir	$(COPY) $(PRJ)$/res$/nologoinstall.bmp $(MSIURETEMPLATEDIR)$/Binary$/Image.bmp
331*cdf0e10cSrcweir	$(COPY) $(PRJ)$/res$/nologoinstall.bmp $(MSISDKOOTEMPLATEDIR)$/Binary$/Image.bmp
332*cdf0e10cSrcweir
333*cdf0e10cSrcweir
334