17871dc3eSAndrew Rist#**************************************************************
27871dc3eSAndrew Rist#
37871dc3eSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
47871dc3eSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
57871dc3eSAndrew Rist#  distributed with this work for additional information
67871dc3eSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
77871dc3eSAndrew Rist#  to you under the Apache License, Version 2.0 (the
87871dc3eSAndrew Rist#  "License"); you may not use this file except in compliance
97871dc3eSAndrew Rist#  with the License.  You may obtain a copy of the License at
107871dc3eSAndrew Rist#
117871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
127871dc3eSAndrew Rist#
137871dc3eSAndrew Rist#  Unless required by applicable law or agreed to in writing,
147871dc3eSAndrew Rist#  software distributed under the License is distributed on an
157871dc3eSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
167871dc3eSAndrew Rist#  KIND, either express or implied.  See the License for the
177871dc3eSAndrew Rist#  specific language governing permissions and limitations
187871dc3eSAndrew Rist#  under the License.
197871dc3eSAndrew Rist#
207871dc3eSAndrew Rist#**************************************************************
217871dc3eSAndrew Rist
227871dc3eSAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweirPRJ=..
25cdf0e10cSrcweirPRJNAME=instsetoo_native
26cdf0e10cSrcweirTARGET=util
27cdf0e10cSrcweir
28cdf0e10cSrcweir.INCLUDE:  settings.mk
29cdf0e10cSrcweir.INCLUDE: $(SOLARINCDIR)$/rtlbootstrap.mk
30cdf0e10cSrcweir
31cdf0e10cSrcweir# watch for the path delimiter
32cdf0e10cSrcweir.IF "$(GUI)"=="WNT"
33cdf0e10cSrcweirPYTHONPATH:=$(PWD)$/$(BIN);$(SOLARLIBDIR);$(SOLARLIBDIR)$/python;$(SOLARLIBDIR)$/python$/lib-dynload
34cdf0e10cSrcweir.ELSE			# "$(GUI)"=="WNT"
35cdf0e10cSrcweirPYTHONPATH:=$(PWD)$/$(BIN):$(SOLARLIBDIR):$(SOLARLIBDIR)$/python:$(SOLARLIBDIR)$/python$/lib-dynload
36cdf0e10cSrcweir.ENDIF			# "$(GUI)"=="WNT"
37cdf0e10cSrcweir.EXPORT: PYTHONPATH
38cdf0e10cSrcweir
39cdf0e10cSrcweir.IF "$(CWS_WORK_STAMP)"=="" || "$(UPDATER)"!=""
40cdf0e10cSrcweirENABLE_DOWNLOADSETS*=TRUE
41cdf0e10cSrcweir.ENDIF			# "$(CWS_WORK_STAMP)"=="" || "$(UPDATER)"!=""
42cdf0e10cSrcweir.IF "$(FORCE_DOWNLOADSETS)"!=""
43cdf0e10cSrcweirENABLE_DOWNLOADSETS=TRUE
44cdf0e10cSrcweir.ENDIF			# "$(FORCE_DOWNLOADSETS)"!=""
45cdf0e10cSrcweir
46cdf0e10cSrcweir.EXPORT: ENABLE_DOWNLOADSETS
47cdf0e10cSrcweir.EXPORT: LAST_MINOR
48cdf0e10cSrcweir.EXPORT: PRJ
49cdf0e10cSrcweir.EXPORT: PRJNAME
50cdf0e10cSrcweir
51cdf0e10cSrcweir.IF "$(OS)"=="LINUX"
52cdf0e10cSrcweirDONT_REMOVE_PACKAGE:=TRUE
53cdf0e10cSrcweir.EXPORT: DONT_REMOVE_PACKAGE
54cdf0e10cSrcweir.ENDIF          # "$(OS)"=="LINUX"
55cdf0e10cSrcweir
56cdf0e10cSrcweir.INCLUDE .IGNORE: $(SRC_ROOT)$/cwsname.mk
57cdf0e10cSrcweir
58cdf0e10cSrcweirSHARED_COM_SDK_PATH*:=.
59cdf0e10cSrcweir
60cdf0e10cSrcweirINSTALLDIR=$(OUT)
61cdf0e10cSrcweir
62cdf0e10cSrcweir.INCLUDE: target.mk
63cdf0e10cSrcweir
6432d4040dSAndre Fischer# The help target belongs after the inclusion of target.mk to not become the default target.
6532d4040dSAndre Fischerhelp .PHONY :
6632d4040dSAndre Fischer	@echo "known targets:"
6732d4040dSAndre Fischer	@echo "    openoffice             builds the default installation packages for the platform"
6832d4040dSAndre Fischer	@echo "    aoo_srcrelease         packs the source release package"
6932d4040dSAndre Fischer	@echo "    updatepack"
7032d4040dSAndre Fischer	@echo "    openofficedev          devloper snapshot"
7132d4040dSAndre Fischer	@echo "    openofficewithjre"
7232d4040dSAndre Fischer	@echo "    ooolanguagepack"
7332d4040dSAndre Fischer	@echo "    ooodevlanguagepack"
7432d4040dSAndre Fischer	@echo "    sdkoo"
7532d4040dSAndre Fischer	@echo "    sdkoodev"
7632d4040dSAndre Fischer	@echo
7732d4040dSAndre Fischer	@echo "Most targets (all except aoo_srcrelease and updatepack) accept suffixes"
7832d4040dSAndre Fischer	@echo "    add _<language> to build a target for one language only"
7932d4040dSAndre Fischer	@echo "        the default set of languages is alllangiso=$(alllangiso)"
8032d4040dSAndre Fischer	@echo "    add .<package_format> to build a target for one package format only"
8132d4040dSAndre Fischer	@echo "        the default set of package formats is archive and PKGFORMAT=$(PKGFORMAT)"
8232d4040dSAndre Fischer
8332d4040dSAndre Fischer
84cdf0e10cSrcweirLOCALPYFILES= \
85cdf0e10cSrcweir    $(BIN)$/uno.py \
86cdf0e10cSrcweir	$(BIN)$/unohelper.py \
87cdf0e10cSrcweir	$(BIN)$/pythonloader.py \
88cdf0e10cSrcweir	$(BIN)$/pythonscript.py \
89cdf0e10cSrcweir	$(BIN)$/officehelper.py \
90cdf0e10cSrcweir	$(BIN)$/mailmerge.py
91cdf0e10cSrcweir
92cdf0e10cSrcweirxxxx:
93cdf0e10cSrcweir    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
94cdf0e10cSrcweir
95cdf0e10cSrcweir.IF "$(GUI)"!="WNT" && "$(EPM)"=="NO" && "$(USE_PACKAGER)"==""
96cdf0e10cSrcweirALLTAR  : $(LOCALPYFILES)
97cdf0e10cSrcweir	@echo "No EPM: do no packaging at this stage"
98cdf0e10cSrcweir.ELSE			# "$(GUI)"!="WNT" && "$(EPM)"=="NO" && "$(USE_PACKAGER)"==""
99cdf0e10cSrcweir.IF "$(UPDATER)"=="" || "$(USE_PACKAGER)"==""
100cdf0e10cSrcweir.IF "$(BUILD_TYPE)"=="$(BUILD_TYPE:s/ODK//)"
101cdf0e10cSrcweirALLTAR : openoffice
102cdf0e10cSrcweir.ELSE
103910823aeSJürgen SchmidtALLTAR : openoffice sdkoo_en-US
104cdf0e10cSrcweir.ENDIF
105cdf0e10cSrcweir.ELSE			# "$(UPDATER)"=="" || "$(USE_PACKAGER)"==""
106cdf0e10cSrcweirALLTAR : updatepack
107cdf0e10cSrcweir.ENDIF			# "$(UPDATER)"=="" || "$(USE_PACKAGER)"==""
108cdf0e10cSrcweir.ENDIF			# "$(GUI)"!="WNT" && "$(EPM)"=="NO" && "$(USE_PACKAGER)"==""
109cdf0e10cSrcweir
110cdf0e10cSrcweir.IF "$(FORCE2ARCHIVE)" == "TRUE"
111cdf0e10cSrcweirPKGFORMAT = archive
112cdf0e10cSrcweir.END
113cdf0e10cSrcweir
114cdf0e10cSrcweir.IF "$(MAKETARGETS:e)"!=""
115cdf0e10cSrcweirPKGFORMAT+=$(MAKETARGETS:e:s/.//)
116cdf0e10cSrcweir.ENDIF			# "$(MAKETARGETS:e)"!=""
117cdf0e10cSrcweir
118cdf0e10cSrcweir# Independent of PKGFORMAT, always build a default-language openoffice product
119cdf0e10cSrcweir# also in archive format, so that tests that require an OOo installation (like
120cdf0e10cSrcweir# smoketestoo_native) have one available:
121cdf0e10cSrcweiropenoffice_$(defaultlangiso) : $$@.archive
122cdf0e10cSrcweir
123cdf0e10cSrcweir.IF "$(VERBOSE)"=="TRUE"
124cdf0e10cSrcweirVERBOSESWITCH=-verbose
1253b45f81aSAriel Constenla-Haile.ELIF "$(VERBOSE)"=="FALSE"
126cdf0e10cSrcweirVERBOSESWITCH=-quiet
127cdf0e10cSrcweir.ENDIF
128cdf0e10cSrcweir
1293b45f81aSAriel Constenla-Haile.IF "$(VERBOSE_INSTALLER)"=="TRUE"
1303b45f81aSAriel Constenla-HaileVERBOSESWITCH+=-log
1313b45f81aSAriel Constenla-Haile.ENDIF
1323b45f81aSAriel Constenla-Haile
133c81b3157SJürgen Schmidt# New target to prepare a source release
134c81b3157SJürgen SchmidtSRC_RELEASE_OUT_DIR=$(shell cd $(OUT) && pwd)$/AOO_SRC_Release
135c81b3157SJürgen Schmidt
136c81b3157SJürgen Schmidtaoo_srcrelease: $(SOLARENV)$/bin$/srcrelease.xml
137c81b3157SJürgen Schmidt	@-$(MKDIR) $(OUT)$/AOO_SRC_Release
138c81b3157SJürgen Schmidt	$(ANT) -f $(SOLARENV)$/bin$/srcrelease.xml -q -Dbasedir=$(SOURCE_ROOT_DIR) -Dout.dir=$(SRC_RELEASE_OUT_DIR)
139c81b3157SJürgen Schmidt
140cdf0e10cSrcweirupdatepack:
141cdf0e10cSrcweir	$(PERL) -w $(SOLARENV)$/bin$/packager.pl
142cdf0e10cSrcweir
143cdf0e10cSrcweir.IF "$(alllangiso)"!=""
144cdf0e10cSrcweir
145cdf0e10cSrcweiropenoffice: $(foreach,i,$(alllangiso) openoffice_$i)
146cdf0e10cSrcweir
147cdf0e10cSrcweiropenofficedev: $(foreach,i,$(alllangiso) openofficedev_$i)
148cdf0e10cSrcweir
149cdf0e10cSrcweiropenofficewithjre: $(foreach,i,$(alllangiso) openofficewithjre_$i)
150cdf0e10cSrcweir
151cdf0e10cSrcweirooolanguagepack : $(foreach,i,$(alllangiso) ooolanguagepack_$i)
152cdf0e10cSrcweir
153cdf0e10cSrcweirooodevlanguagepack: $(foreach,i,$(alllangiso) ooodevlanguagepack_$i)
154cdf0e10cSrcweir
155cdf0e10cSrcweirsdkoo: $(foreach,i,$(alllangiso) sdkoo_$i)
156cdf0e10cSrcweir
157cdf0e10cSrcweirsdkoodev: $(foreach,i,$(alllangiso) sdkoodev_$i)
158cdf0e10cSrcweir
159cdf0e10cSrcweirMSIOFFICETEMPLATESOURCE=$(PRJ)$/inc_openoffice$/windows$/msi_templates
160cdf0e10cSrcweirMSILANGPACKTEMPLATESOURCE=$(PRJ)$/inc_ooolangpack$/windows$/msi_templates
161cdf0e10cSrcweirMSISDKOOTEMPLATESOURCE=$(PRJ)$/inc_sdkoo$/windows$/msi_templates
162cdf0e10cSrcweir
163cdf0e10cSrcweirNOLOGOSPLASH:=$(BIN)$/intro.zip
164cdf0e10cSrcweirDEVNOLOGOSPLASH:=$(BIN)$/dev$/intro.zip
165cdf0e10cSrcweirMSIOFFICETEMPLATEDIR=$(MISC)$/openoffice$/msi_templates
166cdf0e10cSrcweirMSILANGPACKTEMPLATEDIR=$(MISC)$/ooolangpack$/msi_templates
167cdf0e10cSrcweirMSISDKOOTEMPLATEDIR=$(MISC)$/sdkoo$/msi_templates
168cdf0e10cSrcweir
169451f97f9SPedro GiffuniADDDEPS=$(NOLOGOSPLASH) $(DEVNOLOGOSPLASH)
170451f97f9SPedro Giffuni
171cdf0e10cSrcweir.IF "$(OS)" == "WNT"
172b6dfe6c8SAndre FischerADDDEPS+=msitemplates
173cdf0e10cSrcweir.ENDIF
174cdf0e10cSrcweir
175cdf0e10cSrcweir$(foreach,i,$(alllangiso) openoffice_$i) : $(ADDDEPS)
176cdf0e10cSrcweiropenoffice_$(defaultlangiso).archive : $(ADDDEPS)
177cdf0e10cSrcweir
178cdf0e10cSrcweir$(foreach,i,$(alllangiso) openofficedev_$i) : $(ADDDEPS)
179cdf0e10cSrcweir
180cdf0e10cSrcweir$(foreach,i,$(alllangiso) openofficewithjre_$i) : $(ADDDEPS)
181cdf0e10cSrcweir
182cdf0e10cSrcweir$(foreach,i,$(alllangiso) ooolanguagepack_$i) : $(ADDDEPS)
183cdf0e10cSrcweir
184cdf0e10cSrcweir$(foreach,i,$(alllangiso) ooodevlanguagepack_$i) : $(ADDDEPS)
185cdf0e10cSrcweir
186cdf0e10cSrcweir$(foreach,i,$(alllangiso) sdkoo_$i) : $(ADDDEPS)
187cdf0e10cSrcweir
188cdf0e10cSrcweir$(foreach,i,$(alllangiso) sdkoodev_$i) : $(ADDDEPS)
189c81b3157SJürgen Schmidt
190cdf0e10cSrcweir.IF "$(MAKETARGETS)"!=""
191cdf0e10cSrcweir$(MAKETARGETS) : $(ADDDEPS)
192cdf0e10cSrcweir.ENDIF			# "$(MAKETARGETS)"!=""
193cdf0e10cSrcweir
194cdf0e10cSrcweir$(foreach,i,$(alllangiso) openoffice_$i) : $$@{$(PKGFORMAT:^".")}
195cdf0e10cSrcweir.IF "$(MAKETARGETS)"!=""
196cdf0e10cSrcweir.IF "$(MAKETARGETS:e)"=="" && "$(MAKETARGETS:s/_//)"!="$(MAKETARGETS)"
197cdf0e10cSrcweir$(MAKETARGETS) : $$@{$(PKGFORMAT:^".")}
198cdf0e10cSrcweir$(MAKETARGETS){$(PKGFORMAT:^".")} : $(ADDDEPS)
199cdf0e10cSrcweir.ENDIF			# "$(MAKETARGETS:e)"=="" && "$(MAKETARGETS:s/_//)"!="$(MAKETARGETS)"
200cdf0e10cSrcweir.ENDIF			# "$(MAKETARGETS)"!=""
201aa3f9146SAndre Fischer
202aa3f9146SAndre Fischer
203aa3f9146SAndre Fischer# This macro makes calling the make_installer.pl script a bit easier.
204aa3f9146SAndre Fischer# Just add -p and -msitemplate switches.
205aa3f9146SAndre FischerMAKE_INSTALLER_COMMAND=					\
206*dc914883SAndre Fischer	@$(PERL) -w $(SOLARENV)$/bin$/make_installer.pl 	\
207aa3f9146SAndre Fischer		-f $(PRJ)$/util$/openoffice.lst 	\
208aa3f9146SAndre Fischer		-l $(subst,$(@:s/_/ /:1)_, $(@:b)) 	\
209aa3f9146SAndre Fischer		-u $(OUT) 				\
210aa3f9146SAndre Fischer		-buildid $(BUILD) 			\
211aa3f9146SAndre Fischer		-msilanguage $(MISC)$/win_ulffiles	\
212aa3f9146SAndre Fischer		-format $(@:e:s/.//) 			\
213aa3f9146SAndre Fischer		$(VERBOSESWITCH)
214aa3f9146SAndre Fischer
215aa3f9146SAndre Fischer# This macro makes calling gen_update_info.pl a bit easier
216aa3f9146SAndre Fischer# Just add --product switches, and xml input file and redirect output.
217aa3f9146SAndre FischerGEN_UPDATE_INFO_COMMAND=					\
218*dc914883SAndre Fischer	@$(PERL) -w $(SOLARENV)$/bin$/gen_update_info.pl		\
219aa3f9146SAndre Fischer		--buildid $(BUILD)				\
220aa3f9146SAndre Fischer		--arch "$(RTL_ARCH)"				\
221aa3f9146SAndre Fischer		--os "$(RTL_OS)"				\
222aa3f9146SAndre Fischer		--lstfile $(PRJ)$/util$/openoffice.lst		\
223aa3f9146SAndre Fischer		--languages $(subst,$(@:s/_/ /:1)_, $(@:b))
224aa3f9146SAndre Fischer
225*dc914883SAndre Fischeropenoffice_%{$(PKGFORMAT:^".")} :
226*dc914883SAndre Fischer	$(MAKE_INSTALLER_COMMAND) 		\
227*dc914883SAndre Fischer		-p Apache_OpenOffice		\
228*dc914883SAndre Fischer		-msitemplate $(MSIOFFICETEMPLATEDIR)
229*dc914883SAndre Fischer	$(GEN_UPDATE_INFO_COMMAND)		\
230*dc914883SAndre Fischer		--product Apache_OpenOffice	\
231*dc914883SAndre Fischer		$(PRJ)$/util$/update.xml	\
232*dc914883SAndre Fischer		> $(MISC)/$(@:b)_$(RTL_OS)_$(RTL_ARCH)$(@:e).update.xml
233*dc914883SAndre Fischer
234*dc914883SAndre Fischeropenoffice_%{.archive} :
235aa3f9146SAndre Fischer	$(MAKE_INSTALLER_COMMAND) 		\
236aa3f9146SAndre Fischer		-p Apache_OpenOffice		\
237aa3f9146SAndre Fischer		-msitemplate $(MSIOFFICETEMPLATEDIR)
238aa3f9146SAndre Fischer	$(GEN_UPDATE_INFO_COMMAND)		\
239aa3f9146SAndre Fischer		--product Apache_OpenOffice	\
240aa3f9146SAndre Fischer		$(PRJ)$/util$/update.xml	\
241aa3f9146SAndre Fischer		> $(MISC)/$(@:b)_$(RTL_OS)_$(RTL_ARCH)$(@:e).update.xml
242cdf0e10cSrcweir
243cdf0e10cSrcweir$(foreach,i,$(alllangiso) openofficewithjre_$i) : $$@{$(PKGFORMAT:^".")}
244cdf0e10cSrcweiropenofficewithjre_%{$(PKGFORMAT:^".")} :
245aa3f9146SAndre Fischer	$(MAKE_INSTALLER_COMMAND) -p Apache_OpenOffice_wJRE -msitemplate $(MSIOFFICETEMPLATEDIR)
246cdf0e10cSrcweir
247cdf0e10cSrcweir$(foreach,i,$(alllangiso) openofficedev_$i) : $$@{$(PKGFORMAT:^".")}
248cdf0e10cSrcweiropenofficedev_%{$(PKGFORMAT:^".")} :
249aa3f9146SAndre Fischer	$(MAKE_INSTALLER_COMMAND)		\
250aa3f9146SAndre Fischer		-p Apache_OpenOffice_Dev	\
251aa3f9146SAndre Fischer		-msitemplate $(MSIOFFICETEMPLATEDIR)
252aa3f9146SAndre Fischer	$(GEN_UPDATE_INFO_COMMAND)			\
253aa3f9146SAndre Fischer		--product Apache_OpenOffice_Dev 	\
254aa3f9146SAndre Fischer		$(PRJ)$/util$/update.xml 		\
255aa3f9146SAndre Fischer		> $(MISC)/$(@:b)_$(RTL_OS)_$(RTL_ARCH)$(@:e).update.xml
256cdf0e10cSrcweir
257cdf0e10cSrcweir$(foreach,i,$(alllangiso) ooolanguagepack_$i) : $$@{$(PKGFORMAT:^".")}
258cdf0e10cSrcweirooolanguagepack_%{$(PKGFORMAT:^".")} :
259aa3f9146SAndre Fischer	$(MAKE_INSTALLER_COMMAND)			\
260aa3f9146SAndre Fischer		-p Apache_OpenOffice			\
261aa3f9146SAndre Fischer		-msitemplate $(MSILANGPACKTEMPLATEDIR)	\
262aa3f9146SAndre Fischer		-languagepack
263cdf0e10cSrcweir
264cdf0e10cSrcweir$(foreach,i,$(alllangiso) ooodevlanguagepack_$i) : $$@{$(PKGFORMAT:^".")}
265cdf0e10cSrcweirooodevlanguagepack_%{$(PKGFORMAT:^".")} :
266aa3f9146SAndre Fischer	$(MAKE_INSTALLER_COMMAND) -p Apache_OpenOffice_Dev -msitemplate $(MSILANGPACKTEMPLATEDIR) -languagepack
267cdf0e10cSrcweir
268cdf0e10cSrcweir$(foreach,i,$(alllangiso) sdkoo_$i) : $$@{$(PKGFORMAT:^".")}
269cdf0e10cSrcweirsdkoo_%{$(PKGFORMAT:^".")} :
270aa3f9146SAndre Fischer	$(MAKE_INSTALLER_COMMAND) -p Apache_OpenOffice_SDK -msitemplate $(MSISDKOOTEMPLATEDIR) -dontstrip
271cdf0e10cSrcweir
272cdf0e10cSrcweir$(foreach,i,$(alllangiso) sdkoodev_$i) : $$@{$(PKGFORMAT:^".")}
273cdf0e10cSrcweirsdkoodev_%{$(PKGFORMAT:^".")} :
274aa3f9146SAndre Fischer	$(MAKE_INSTALLER_COMMAND) -p Apache_OpenOffice_Dev_SDK -msitemplate $(MSISDKOOTEMPLATEDIR) -dontstrip
275cdf0e10cSrcweir
276cdf0e10cSrcweir.IF "$(MAKETARGETS)"!=""
277cdf0e10cSrcweir.IF "$(MAKETARGETS:e)"=="" && "$(MAKETARGETS:s/_//)"!="$(MAKETARGETS)"
278cdf0e10cSrcweir$(MAKETARGETS) : $$@{$(PKGFORMAT:^".")}
279cdf0e10cSrcweir$(MAKETARGETS){$(PKGFORMAT:^".")} : $(ADDDEPS)
280cdf0e10cSrcweir.ENDIF			# "$(MAKETARGETS:e)"=="" && "$(MAKETARGETS:s/_//)"!="$(MAKETARGETS)"
281cdf0e10cSrcweir.ENDIF			# "$(MAKETARGETS)"!=""
282cdf0e10cSrcweir
283cdf0e10cSrcweir.ELSE			# "$(alllangiso)"!=""
284cdf0e10cSrcweiropenoffice:
285cdf0e10cSrcweir	@echo cannot pack nothing...
286cdf0e10cSrcweir
287cdf0e10cSrcweir.ENDIF			# "$(alllangiso)"!=""
288cdf0e10cSrcweir
289cdf0e10cSrcweir.IF "$(LOCALPYFILES)"!=""
290ee75e844SJürgen Schmidt$(foreach,i,$(alllangiso) openoffice_$i{$(PKGFORMAT:^".") .archive} openofficewithjre_$i{$(PKGFORMAT:^".")} openofficedev_$i{$(PKGFORMAT:^".")} sdkoo_$i{$(PKGFORMAT:^".")}) updatepack : $(LOCALPYFILES)
291cdf0e10cSrcweir.ENDIF			# "$(LOCALPYFILES)"!=""
292cdf0e10cSrcweir
293cdf0e10cSrcweir$(BIN)$/%.py : $(SOLARSHAREDBIN)$/pyuno$/%.py
294cdf0e10cSrcweir	@$(COPY) $< $@
295cdf0e10cSrcweir
296910823aeSJürgen Schmidt#$(BIN)$/intro.zip : $(SOLARCOMMONPCKDIR)$/openoffice_nologo$/intro.zip
297910823aeSJürgen Schmidt$(BIN)$/intro.zip : $(SOLARCOMMONPCKDIR)$/intro.zip
298cdf0e10cSrcweir	$(COPY) $< $@
299cdf0e10cSrcweir
300910823aeSJürgen Schmidt#$(BIN)$/dev$/intro.zip : $(SOLARCOMMONPCKDIR)$/openoffice_dev_nologo$/intro.zip
301910823aeSJürgen Schmidt$(BIN)$/dev$/intro.zip : $(SOLARCOMMONPCKDIR)$/openoffice_dev$/intro.zip
302cdf0e10cSrcweir	@-$(MKDIR) $(@:d)
303cdf0e10cSrcweir	$(COPY) $< $@
304cdf0e10cSrcweir
305b6dfe6c8SAndre Fischermsitemplates .PHONY: msi_template_files msi_langpack_template_files msi_sdk_template_files
3067a3dfa40SAndre Fischer
3077a3dfa40SAndre FischerMSI_OFFICE_TEMPLATE_FILES=		\
3087a3dfa40SAndre Fischer	ActionTe.idt			\
3097a3dfa40SAndre Fischer	AdminExe.idt			\
3107a3dfa40SAndre Fischer	AdminUIS.idt			\
3117a3dfa40SAndre Fischer	AdvtExec.idt			\
3127a3dfa40SAndre Fischer	AppSearc.idt			\
3137a3dfa40SAndre Fischer	Binary.idt			\
3147a3dfa40SAndre Fischer	CheckBox.idt			\
3157a3dfa40SAndre Fischer	Control.idt			\
3167a3dfa40SAndre Fischer	ControlC.idt			\
3177a3dfa40SAndre Fischer	ControlE.idt			\
3187a3dfa40SAndre Fischer	CustomAc.idt			\
3197a3dfa40SAndre Fischer	Dialog.idt			\
3207a3dfa40SAndre Fischer	Error.idt			\
3217a3dfa40SAndre Fischer	EventMap.idt			\
3227a3dfa40SAndre Fischer	InstallE.idt			\
3237a3dfa40SAndre Fischer	InstallU.idt			\
3247a3dfa40SAndre Fischer	LaunchCo.idt			\
3257a3dfa40SAndre Fischer	ListBox.idt			\
3267a3dfa40SAndre Fischer	Property.idt			\
3277a3dfa40SAndre Fischer	RadioBut.idt			\
3287a3dfa40SAndre Fischer	RegLocat.idt			\
3297a3dfa40SAndre Fischer	Signatur.idt			\
3307a3dfa40SAndre Fischer	TextStyl.idt			\
3317a3dfa40SAndre Fischer	UIText.idt			\
3327a3dfa40SAndre Fischer	_Validat.idt			\
3337a3dfa40SAndre Fischer	codes.txt			\
3347a3dfa40SAndre Fischer	codes_broo.txt			\
3357a3dfa40SAndre Fischer	codes_broodev.txt		\
3367a3dfa40SAndre Fischer	codes_ooodev.txt		\
3377a3dfa40SAndre Fischer	components.txt			\
3387a3dfa40SAndre Fischer	upgradecode_remove_ooo.txt	\
3397a3dfa40SAndre Fischer	Binary/Banner.bmp		\
3407a3dfa40SAndre Fischer	Binary/Image.bmp		\
3417a3dfa40SAndre Fischer	Binary/caution.ico		\
3427a3dfa40SAndre Fischer	Binary/dontinstall.ico		\
3437a3dfa40SAndre Fischer	Binary/install.ico		\
3447a3dfa40SAndre Fischer	Binary/installfirstuse.ico	\
3457a3dfa40SAndre Fischer	Binary/installpartial.ico	\
3467a3dfa40SAndre Fischer	Binary/installstatemenu.ico	\
3477a3dfa40SAndre Fischer	Binary/networkinstall.ico	\
3487a3dfa40SAndre Fischer	Binary/newfolder.ico		\
3497a3dfa40SAndre Fischer	Binary/openfolder.ico		\
3507a3dfa40SAndre Fischer	Binary/setup.ico		\
3517a3dfa40SAndre Fischer	Binary/setupcomplete.ico	\
3527a3dfa40SAndre Fischer	Binary/setuppartial.ico		\
3537a3dfa40SAndre Fischer	Binary/setuprepair.ico		\
3547a3dfa40SAndre Fischer	Binary/trashcan.ico		\
3557a3dfa40SAndre Fischer	Binary/up.ico
3567a3dfa40SAndre Fischer
3577a3dfa40SAndre FischerMSI_LANGPACK_TEMPLATE_FILES=		\
3587a3dfa40SAndre Fischer	ActionTe.idt			\
3597a3dfa40SAndre Fischer	AdminExe.idt			\
3607a3dfa40SAndre Fischer	AdminUIS.idt			\
3617a3dfa40SAndre Fischer	AdvtExec.idt			\
3627a3dfa40SAndre Fischer	Binary.idt			\
3637a3dfa40SAndre Fischer	CheckBox.idt			\
3647a3dfa40SAndre Fischer	Control.idt			\
3657a3dfa40SAndre Fischer	ControlC.idt			\
3667a3dfa40SAndre Fischer	ControlE.idt			\
3677a3dfa40SAndre Fischer	CustomAc.idt			\
3687a3dfa40SAndre Fischer	Dialog.idt			\
3697a3dfa40SAndre Fischer	Error.idt			\
3707a3dfa40SAndre Fischer	EventMap.idt			\
3717a3dfa40SAndre Fischer	InstallE.idt			\
3727a3dfa40SAndre Fischer	InstallU.idt			\
3737a3dfa40SAndre Fischer	LaunchCo.idt			\
3747a3dfa40SAndre Fischer	ListBox.idt			\
3757a3dfa40SAndre Fischer	Property.idt			\
3767a3dfa40SAndre Fischer	RadioBut.idt			\
3777a3dfa40SAndre Fischer	TextStyl.idt			\
3787a3dfa40SAndre Fischer	UIText.idt			\
3797a3dfa40SAndre Fischer	_Validat.idt			\
3807a3dfa40SAndre Fischer	bro_patchcodes.txt		\
3817a3dfa40SAndre Fischer	brodev_patchcodes.txt		\
3827a3dfa40SAndre Fischer	codes.txt			\
3837a3dfa40SAndre Fischer	codes_broo.txt			\
3847a3dfa40SAndre Fischer	codes_ooodev.txt		\
3857a3dfa40SAndre Fischer	components.txt			\
3867a3dfa40SAndre Fischer	ooo_patchcodes.txt		\
3877a3dfa40SAndre Fischer	ooodev_patchcodes.txt		\
3887a3dfa40SAndre Fischer	Binary/Banner.bmp
3897a3dfa40SAndre Fischer
3907a3dfa40SAndre FischerMSI_SDK_TEMPLATE_FILES=			\
3917a3dfa40SAndre Fischer	ActionTe.idt			\
3927a3dfa40SAndre Fischer	AdminExe.idt			\
3937a3dfa40SAndre Fischer	AdminUIS.idt			\
3947a3dfa40SAndre Fischer	AdvtExec.idt			\
3957a3dfa40SAndre Fischer	AppSearc.idt			\
3967a3dfa40SAndre Fischer	Binary.idt			\
3977a3dfa40SAndre Fischer	CheckBox.idt			\
3987a3dfa40SAndre Fischer	Control.idt			\
3997a3dfa40SAndre Fischer	ControlC.idt			\
4007a3dfa40SAndre Fischer	ControlE.idt			\
4017a3dfa40SAndre Fischer	CustomAc.idt			\
4027a3dfa40SAndre Fischer	Dialog.idt			\
4037a3dfa40SAndre Fischer	Error.idt			\
4047a3dfa40SAndre Fischer	EventMap.idt			\
4057a3dfa40SAndre Fischer	InstallE.idt			\
4067a3dfa40SAndre Fischer	InstallU.idt			\
4077a3dfa40SAndre Fischer	LaunchCo.idt			\
4087a3dfa40SAndre Fischer	ListBox.idt			\
4097a3dfa40SAndre Fischer	Property.idt			\
4107a3dfa40SAndre Fischer	RadioBut.idt			\
4117a3dfa40SAndre Fischer	RegLocat.idt			\
4127a3dfa40SAndre Fischer	Signatur.idt			\
4137a3dfa40SAndre Fischer	TextStyl.idt			\
4147a3dfa40SAndre Fischer	UIText.idt			\
4157a3dfa40SAndre Fischer	_Validat.idt			\
4167a3dfa40SAndre Fischer	codes.txt			\
4177a3dfa40SAndre Fischer	components.txt			\
4187a3dfa40SAndre Fischer	Binary/Banner.bmp		\
4197a3dfa40SAndre Fischer	Binary/Image.bmp		\
4207a3dfa40SAndre Fischer	Binary/caution.ico		\
4217a3dfa40SAndre Fischer	Binary/dontinstall.ico		\
4227a3dfa40SAndre Fischer	Binary/install.ico		\
4237a3dfa40SAndre Fischer	Binary/installfirstuse.ico	\
4247a3dfa40SAndre Fischer	Binary/installpartial.ico	\
4257a3dfa40SAndre Fischer	Binary/installstatemenu.ico	\
4267a3dfa40SAndre Fischer	Binary/networkinstall.ico	\
4277a3dfa40SAndre Fischer	Binary/newfolder.ico		\
4287a3dfa40SAndre Fischer	Binary/openfolder.ico		\
4297a3dfa40SAndre Fischer	Binary/setup.ico		\
4307a3dfa40SAndre Fischer	Binary/setupcomplete.ico	\
4317a3dfa40SAndre Fischer	Binary/setuppartial.ico		\
4327a3dfa40SAndre Fischer	Binary/setuprepair.ico		\
4337a3dfa40SAndre Fischer	Binary/trashcan.ico		\
4347a3dfa40SAndre Fischer	Binary/up.ico
4357a3dfa40SAndre Fischer
4367a3dfa40SAndre Fischermsi_template_files .PHONY:					\
4377a3dfa40SAndre Fischer	$(MSIOFFICETEMPLATEDIR)					\
4387a3dfa40SAndre Fischer	$(MSIOFFICETEMPLATEDIR)$/Binary 			\
4397a3dfa40SAndre Fischer	$(MSIOFFICETEMPLATEDIR)$/{$(MSI_OFFICE_TEMPLATE_FILES)}
4407a3dfa40SAndre Fischer$(MSIOFFICETEMPLATEDIR) $(MSIOFFICETEMPLATEDIR)$/Binary :
4417a3dfa40SAndre Fischer	-$(MKDIRHIER) $@
4427a3dfa40SAndre Fischer$(MSIOFFICETEMPLATEDIR)$/% : $(MSIOFFICETEMPLATESOURCE)$/%
4437a3dfa40SAndre Fischer	$(GNUCOPY) $< $@
4447a3dfa40SAndre Fischer
4457a3dfa40SAndre Fischermsi_langpack_template_files .PHONY :				\
4467a3dfa40SAndre Fischer	$(MSILANGPACKTEMPLATEDIR)				\
4477a3dfa40SAndre Fischer	$(MSILANGPACKTEMPLATEDIR)$/Binary			\
4487a3dfa40SAndre Fischer	$(MSILANGPACKTEMPLATEDIR)$/{$(MSI_LANGPACK_TEMPLATE_FILES)}
4497a3dfa40SAndre Fischer$(MSILANGPACKTEMPLATEDIR) $(MSILANGPACKTEMPLATEDIR)$/Binary  :
4507a3dfa40SAndre Fischer	-$(MKDIRHIER) $@
4517a3dfa40SAndre Fischer$(MSILANGPACKTEMPLATEDIR)$/% : $(MSILANGPACKTEMPLATESOURCE)$/%
4527a3dfa40SAndre Fischer	$(GNUCOPY) $< $@
4537a3dfa40SAndre Fischer
4547a3dfa40SAndre Fischer
4557a3dfa40SAndre Fischermsi_sdk_template_files .PHONY :					\
4567a3dfa40SAndre Fischer	$(MSISDKOOTEMPLATEDIR)					\
4577a3dfa40SAndre Fischer	$(MSISDKOOTEMPLATEDIR)$/Binary				\
4587a3dfa40SAndre Fischer	$(MSISDKOOTEMPLATEDIR)$/{$(MSI_SDK_TEMPLATE_FILES)}
4597a3dfa40SAndre Fischer$(MSISDKOOTEMPLATEDIR) $(MSISDKOOTEMPLATEDIR)$/Binary :
4607a3dfa40SAndre Fischer	-$(MKDIRHIER) $@
4617a3dfa40SAndre Fischer$(MSISDKOOTEMPLATEDIR)/% : $(MSISDKOOTEMPLATESOURCE)$/%
4627a3dfa40SAndre Fischer	$(GNUCOPY) $< $@
463