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
22cdf0e10cSrcweirPRJ=..
23cdf0e10cSrcweirPRJNAME=instsetoo_native
24cdf0e10cSrcweirTARGET=util
25cdf0e10cSrcweir
26cdf0e10cSrcweir.INCLUDE:  settings.mk
27cdf0e10cSrcweir.INCLUDE: $(SOLARINCDIR)$/rtlbootstrap.mk
28cdf0e10cSrcweir
29cdf0e10cSrcweir# watch for the path delimiter
30cdf0e10cSrcweir.IF "$(GUI)"=="WNT"
31cdf0e10cSrcweirPYTHONPATH:=$(PWD)$/$(BIN);$(SOLARLIBDIR);$(SOLARLIBDIR)$/python;$(SOLARLIBDIR)$/python$/lib-dynload
32cdf0e10cSrcweir.ELSE			# "$(GUI)"=="WNT"
33cdf0e10cSrcweirPYTHONPATH:=$(PWD)$/$(BIN):$(SOLARLIBDIR):$(SOLARLIBDIR)$/python:$(SOLARLIBDIR)$/python$/lib-dynload
34cdf0e10cSrcweir.ENDIF			# "$(GUI)"=="WNT"
35cdf0e10cSrcweir.EXPORT: PYTHONPATH
36cdf0e10cSrcweir
37cdf0e10cSrcweir.IF "$(CWS_WORK_STAMP)"=="" || "$(UPDATER)"!=""
38cdf0e10cSrcweirENABLE_DOWNLOADSETS*=TRUE
39cdf0e10cSrcweir.ENDIF			# "$(CWS_WORK_STAMP)"=="" || "$(UPDATER)"!=""
40cdf0e10cSrcweir.IF "$(FORCE_DOWNLOADSETS)"!=""
41cdf0e10cSrcweirENABLE_DOWNLOADSETS=TRUE
42cdf0e10cSrcweir.ENDIF			# "$(FORCE_DOWNLOADSETS)"!=""
43cdf0e10cSrcweir
44cdf0e10cSrcweir.EXPORT: ENABLE_DOWNLOADSETS
45cdf0e10cSrcweir.EXPORT: LAST_MINOR
46cdf0e10cSrcweir.EXPORT: PRJ
47cdf0e10cSrcweir.EXPORT: PRJNAME
48cdf0e10cSrcweir
49cdf0e10cSrcweir.IF "$(OS)"=="LINUX"
50cdf0e10cSrcweirDONT_REMOVE_PACKAGE:=TRUE
51cdf0e10cSrcweir.EXPORT: DONT_REMOVE_PACKAGE
52cdf0e10cSrcweir.ENDIF          # "$(OS)"=="LINUX"
53cdf0e10cSrcweir
54cdf0e10cSrcweir.INCLUDE .IGNORE: $(SRC_ROOT)$/cwsname.mk
55cdf0e10cSrcweir
56cdf0e10cSrcweirSHARED_COM_SDK_PATH*:=.
57cdf0e10cSrcweir
58cdf0e10cSrcweirINSTALLDIR=$(OUT)
59cdf0e10cSrcweir
60cdf0e10cSrcweir.INCLUDE: target.mk
61cdf0e10cSrcweir
6232d4040dSAndre Fischer# The help target belongs after the inclusion of target.mk to not become the default target.
6332d4040dSAndre Fischerhelp .PHONY :
6432d4040dSAndre Fischer	@echo "known targets:"
6532d4040dSAndre Fischer	@echo "    openoffice             builds the default installation packages for the platform"
6632d4040dSAndre Fischer	@echo "    aoo_srcrelease         packs the source release package"
6732d4040dSAndre Fischer	@echo "    updatepack"
6832d4040dSAndre Fischer	@echo "    openofficedev          devloper snapshot"
6932d4040dSAndre Fischer	@echo "    openofficewithjre"
7032d4040dSAndre Fischer	@echo "    ooolanguagepack"
7132d4040dSAndre Fischer	@echo "    ooodevlanguagepack"
7232d4040dSAndre Fischer	@echo "    sdkoo"
7332d4040dSAndre Fischer	@echo "    sdkoodev"
7432d4040dSAndre Fischer	@echo
75*9f91b7e3SAndre Fischer	@echo "experimental targets:"
76*9f91b7e3SAndre Fischer	@echo "    patch_create           create a patch for updating an installed office (Windows only)"
77*9f91b7e3SAndre Fischer	@echo "    patch_apply            apply a previously created patch"
78*9f91b7e3SAndre Fischer	@echo
7932d4040dSAndre Fischer	@echo "Most targets (all except aoo_srcrelease and updatepack) accept suffixes"
8032d4040dSAndre Fischer	@echo "    add _<language> to build a target for one language only"
8132d4040dSAndre Fischer	@echo "        the default set of languages is alllangiso=$(alllangiso)"
8232d4040dSAndre Fischer	@echo "    add .<package_format> to build a target for one package format only"
8332d4040dSAndre Fischer	@echo "        the default set of package formats is archive and PKGFORMAT=$(PKGFORMAT)"
8432d4040dSAndre Fischer
8532d4040dSAndre Fischer
86*9f91b7e3SAndre FischerLOCALPYFILES=			\
87*9f91b7e3SAndre Fischer	$(BIN)$/uno.py		\
88*9f91b7e3SAndre Fischer	$(BIN)$/unohelper.py	\
89cdf0e10cSrcweir	$(BIN)$/pythonloader.py \
90cdf0e10cSrcweir	$(BIN)$/pythonscript.py \
91cdf0e10cSrcweir	$(BIN)$/officehelper.py \
92cdf0e10cSrcweir	$(BIN)$/mailmerge.py
93cdf0e10cSrcweir
94cdf0e10cSrcweirxxxx:
95cdf0e10cSrcweir    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
96cdf0e10cSrcweir
97cdf0e10cSrcweir.IF "$(GUI)"!="WNT" && "$(EPM)"=="NO" && "$(USE_PACKAGER)"==""
98cdf0e10cSrcweirALLTAR  : $(LOCALPYFILES)
99cdf0e10cSrcweir	@echo "No EPM: do no packaging at this stage"
100cdf0e10cSrcweir.ELSE			# "$(GUI)"!="WNT" && "$(EPM)"=="NO" && "$(USE_PACKAGER)"==""
101cdf0e10cSrcweir.IF "$(UPDATER)"=="" || "$(USE_PACKAGER)"==""
102cdf0e10cSrcweir.IF "$(BUILD_TYPE)"=="$(BUILD_TYPE:s/ODK//)"
103cdf0e10cSrcweirALLTAR : openoffice
104cdf0e10cSrcweir.ELSE
105910823aeSJürgen SchmidtALLTAR : openoffice sdkoo_en-US
106cdf0e10cSrcweir.ENDIF
107cdf0e10cSrcweir.ELSE			# "$(UPDATER)"=="" || "$(USE_PACKAGER)"==""
108cdf0e10cSrcweirALLTAR : updatepack
109cdf0e10cSrcweir.ENDIF			# "$(UPDATER)"=="" || "$(USE_PACKAGER)"==""
110cdf0e10cSrcweir.ENDIF			# "$(GUI)"!="WNT" && "$(EPM)"=="NO" && "$(USE_PACKAGER)"==""
111cdf0e10cSrcweir
112cdf0e10cSrcweir.IF "$(FORCE2ARCHIVE)" == "TRUE"
113cdf0e10cSrcweirPKGFORMAT = archive
114cdf0e10cSrcweir.END
115cdf0e10cSrcweir
116cdf0e10cSrcweir.IF "$(MAKETARGETS:e)"!=""
117cdf0e10cSrcweirPKGFORMAT+=$(MAKETARGETS:e:s/.//)
118cdf0e10cSrcweir.ENDIF			# "$(MAKETARGETS:e)"!=""
119cdf0e10cSrcweir
120cdf0e10cSrcweir# Independent of PKGFORMAT, always build a default-language openoffice product
121cdf0e10cSrcweir# also in archive format, so that tests that require an OOo installation (like
122cdf0e10cSrcweir# smoketestoo_native) have one available:
123*9f91b7e3SAndre Fischer#openoffice_$(defaultlangiso) : $$@.archive
124cdf0e10cSrcweir
125cdf0e10cSrcweir.IF "$(VERBOSE)"=="TRUE"
126cdf0e10cSrcweirVERBOSESWITCH=-verbose
1273b45f81aSAriel Constenla-Haile.ELIF "$(VERBOSE)"=="FALSE"
128cdf0e10cSrcweirVERBOSESWITCH=-quiet
129cdf0e10cSrcweir.ENDIF
130cdf0e10cSrcweir
131*9f91b7e3SAndre Fischer.IF "$(release:U)"=="T"
132*9f91b7e3SAndre FischerRELEASE_SWITCH=-release
133*9f91b7e3SAndre Fischer$(foreach,i,$(alllangiso) openoffice_$i.msi) : prepare_release_build
134*9f91b7e3SAndre Fischer.ELSE
135*9f91b7e3SAndre FischerRELEASE_SWITCH=
136*9f91b7e3SAndre Fischer.ENDIF
137*9f91b7e3SAndre Fischer
138*9f91b7e3SAndre Fischerprepare_release_build .PHONY:
139*9f91b7e3SAndre Fischer	@$(PERL) -w $(SOLARENV)$/bin$/release_prepare.pl 	\
140*9f91b7e3SAndre Fischer		--lst-file $(PRJ)$/util$/openoffice.lst 	\
141*9f91b7e3SAndre Fischer		--product-name Apache_OpenOffice		\
142*9f91b7e3SAndre Fischer		--output-path $(OUT) 				\
143*9f91b7e3SAndre Fischer		$(alllangiso)
144*9f91b7e3SAndre Fischer
1453b45f81aSAriel Constenla-Haile.IF "$(VERBOSE_INSTALLER)"=="TRUE"
1463b45f81aSAriel Constenla-HaileVERBOSESWITCH+=-log
1473b45f81aSAriel Constenla-Haile.ENDIF
1483b45f81aSAriel Constenla-Haile
149c81b3157SJürgen Schmidt# New target to prepare a source release
150c81b3157SJürgen SchmidtSRC_RELEASE_OUT_DIR=$(shell cd $(OUT) && pwd)$/AOO_SRC_Release
151c81b3157SJürgen Schmidt
152c81b3157SJürgen Schmidtaoo_srcrelease: $(SOLARENV)$/bin$/srcrelease.xml
153c81b3157SJürgen Schmidt	@-$(MKDIR) $(OUT)$/AOO_SRC_Release
154c81b3157SJürgen Schmidt	$(ANT) -f $(SOLARENV)$/bin$/srcrelease.xml -q -Dbasedir=$(SOURCE_ROOT_DIR) -Dout.dir=$(SRC_RELEASE_OUT_DIR)
155c81b3157SJürgen Schmidt
156cdf0e10cSrcweirupdatepack:
157cdf0e10cSrcweir	$(PERL) -w $(SOLARENV)$/bin$/packager.pl
158cdf0e10cSrcweir
159cdf0e10cSrcweir.IF "$(alllangiso)"!=""
160cdf0e10cSrcweir
161cdf0e10cSrcweiropenoffice: $(foreach,i,$(alllangiso) openoffice_$i)
162cdf0e10cSrcweir
163cdf0e10cSrcweiropenofficedev: $(foreach,i,$(alllangiso) openofficedev_$i)
164cdf0e10cSrcweir
165cdf0e10cSrcweiropenofficewithjre: $(foreach,i,$(alllangiso) openofficewithjre_$i)
166cdf0e10cSrcweir
167cdf0e10cSrcweirooolanguagepack : $(foreach,i,$(alllangiso) ooolanguagepack_$i)
168cdf0e10cSrcweir
169cdf0e10cSrcweirooodevlanguagepack: $(foreach,i,$(alllangiso) ooodevlanguagepack_$i)
170cdf0e10cSrcweir
171cdf0e10cSrcweirsdkoo: $(foreach,i,$(alllangiso) sdkoo_$i)
172cdf0e10cSrcweir
173cdf0e10cSrcweirsdkoodev: $(foreach,i,$(alllangiso) sdkoodev_$i)
174cdf0e10cSrcweir
175cdf0e10cSrcweirMSIOFFICETEMPLATESOURCE=$(PRJ)$/inc_openoffice$/windows$/msi_templates
176cdf0e10cSrcweirMSILANGPACKTEMPLATESOURCE=$(PRJ)$/inc_ooolangpack$/windows$/msi_templates
177cdf0e10cSrcweirMSISDKOOTEMPLATESOURCE=$(PRJ)$/inc_sdkoo$/windows$/msi_templates
178cdf0e10cSrcweir
179cdf0e10cSrcweirNOLOGOSPLASH:=$(BIN)$/intro.zip
180cdf0e10cSrcweirDEVNOLOGOSPLASH:=$(BIN)$/dev$/intro.zip
181cdf0e10cSrcweirMSIOFFICETEMPLATEDIR=$(MISC)$/openoffice$/msi_templates
182cdf0e10cSrcweirMSILANGPACKTEMPLATEDIR=$(MISC)$/ooolangpack$/msi_templates
183cdf0e10cSrcweirMSISDKOOTEMPLATEDIR=$(MISC)$/sdkoo$/msi_templates
184cdf0e10cSrcweir
185*9f91b7e3SAndre FischerADDDEPS=adddeps
186*9f91b7e3SAndre Fischeradddeps .PHONY : $(NOLOGOSPLASH) $(DEVNOLOGOSPLASH)
187451f97f9SPedro Giffuni
188cdf0e10cSrcweir.IF "$(OS)" == "WNT"
189*9f91b7e3SAndre Fischeradddeps : msitemplates
190cdf0e10cSrcweir.ENDIF
191cdf0e10cSrcweir
192*9f91b7e3SAndre Fischer.IF "$(LOCALPYFILES)"!=""
193*9f91b7e3SAndre Fischerlocal_python_files .PHONY : $(LOCALPYFILES)
194*9f91b7e3SAndre Fischeradddeps : local_python_files
195*9f91b7e3SAndre Fischerupdatepack : local_python_files
196*9f91b7e3SAndre Fischer.ENDIF			# "$(LOCALPYFILES)"!=""
197*9f91b7e3SAndre Fischer
198*9f91b7e3SAndre Fischer
199cdf0e10cSrcweir$(foreach,i,$(alllangiso) openoffice_$i) : $(ADDDEPS)
200cdf0e10cSrcweiropenoffice_$(defaultlangiso).archive : $(ADDDEPS)
201cdf0e10cSrcweir
202cdf0e10cSrcweir$(foreach,i,$(alllangiso) openofficedev_$i) : $(ADDDEPS)
203cdf0e10cSrcweir
204cdf0e10cSrcweir$(foreach,i,$(alllangiso) openofficewithjre_$i) : $(ADDDEPS)
205cdf0e10cSrcweir
206cdf0e10cSrcweir$(foreach,i,$(alllangiso) ooolanguagepack_$i) : $(ADDDEPS)
207cdf0e10cSrcweir
208cdf0e10cSrcweir$(foreach,i,$(alllangiso) ooodevlanguagepack_$i) : $(ADDDEPS)
209cdf0e10cSrcweir
210cdf0e10cSrcweir$(foreach,i,$(alllangiso) sdkoo_$i) : $(ADDDEPS)
211cdf0e10cSrcweir
212cdf0e10cSrcweir$(foreach,i,$(alllangiso) sdkoodev_$i) : $(ADDDEPS)
213c81b3157SJürgen Schmidt
214cdf0e10cSrcweir$(foreach,i,$(alllangiso) openoffice_$i) : $$@{$(PKGFORMAT:^".")}
215*9f91b7e3SAndre Fischer$(foreach,i,$(alllangiso) openofficewithjre_$i) : $$@{$(PKGFORMAT:^".")}
216*9f91b7e3SAndre Fischer$(foreach,i,$(alllangiso) openofficedev_$i) : $$@{$(PKGFORMAT:^".")}
217*9f91b7e3SAndre Fischer$(foreach,i,$(alllangiso) ooolanguagepack_$i) : $$@{$(PKGFORMAT:^".")}
218*9f91b7e3SAndre Fischer$(foreach,i,$(alllangiso) ooodevlanguagepack_$i) : $$@{$(PKGFORMAT:^".")}
219*9f91b7e3SAndre Fischer$(foreach,i,$(alllangiso) sdkoo_$i) : $$@{$(PKGFORMAT:^".")}
220*9f91b7e3SAndre Fischer$(foreach,i,$(alllangiso) sdkoodev_$i) : $$@{$(PKGFORMAT:^".")}
221aa3f9146SAndre Fischer
222aa3f9146SAndre Fischer
223aa3f9146SAndre Fischer# This macro makes calling the make_installer.pl script a bit easier.
224aa3f9146SAndre Fischer# Just add -p and -msitemplate switches.
225aa3f9146SAndre FischerMAKE_INSTALLER_COMMAND=					\
226*9f91b7e3SAndre Fischer	@$(PERL) -w $(SOLARENV)$/bin$/make_installer.pl \
227aa3f9146SAndre Fischer		-f $(PRJ)$/util$/openoffice.lst 	\
228aa3f9146SAndre Fischer		-l $(subst,$(@:s/_/ /:1)_, $(@:b)) 	\
229aa3f9146SAndre Fischer		-u $(OUT) 				\
230aa3f9146SAndre Fischer		-buildid $(BUILD) 			\
231aa3f9146SAndre Fischer		-msilanguage $(MISC)$/win_ulffiles	\
232aa3f9146SAndre Fischer		-format $(@:e:s/.//) 			\
233aa3f9146SAndre Fischer		$(VERBOSESWITCH)
234aa3f9146SAndre Fischer
235aa3f9146SAndre Fischer# This macro makes calling gen_update_info.pl a bit easier
236aa3f9146SAndre Fischer# Just add --product switches, and xml input file and redirect output.
237aa3f9146SAndre FischerGEN_UPDATE_INFO_COMMAND=					\
238*9f91b7e3SAndre Fischer	@$(PERL) -w $(SOLARENV)$/bin$/gen_update_info.pl	\
239aa3f9146SAndre Fischer		--buildid $(BUILD)				\
240aa3f9146SAndre Fischer		--arch "$(RTL_ARCH)"				\
241aa3f9146SAndre Fischer		--os "$(RTL_OS)"				\
242aa3f9146SAndre Fischer		--lstfile $(PRJ)$/util$/openoffice.lst		\
243aa3f9146SAndre Fischer		--languages $(subst,$(@:s/_/ /:1)_, $(@:b))
244aa3f9146SAndre Fischer
245dc914883SAndre Fischeropenoffice_%{$(PKGFORMAT:^".")} :
246*9f91b7e3SAndre Fischer	$(MAKE_INSTALLER_COMMAND) 			\
247*9f91b7e3SAndre Fischer		-p Apache_OpenOffice			\
248*9f91b7e3SAndre Fischer		-msitemplate $(MSIOFFICETEMPLATEDIR)	\
249*9f91b7e3SAndre Fischer		$(RELEASE_SWITCH)
250dc914883SAndre Fischer	$(GEN_UPDATE_INFO_COMMAND)		\
251dc914883SAndre Fischer		--product Apache_OpenOffice	\
252dc914883SAndre Fischer		$(PRJ)$/util$/update.xml	\
253dc914883SAndre Fischer		> $(MISC)/$(@:b)_$(RTL_OS)_$(RTL_ARCH)$(@:e).update.xml
254dc914883SAndre Fischer
255dc914883SAndre Fischeropenoffice_%{.archive} :
256aa3f9146SAndre Fischer	$(MAKE_INSTALLER_COMMAND) 		\
257aa3f9146SAndre Fischer		-p Apache_OpenOffice		\
258aa3f9146SAndre Fischer		-msitemplate $(MSIOFFICETEMPLATEDIR)
259aa3f9146SAndre Fischer	$(GEN_UPDATE_INFO_COMMAND)		\
260aa3f9146SAndre Fischer		--product Apache_OpenOffice	\
261aa3f9146SAndre Fischer		$(PRJ)$/util$/update.xml	\
262aa3f9146SAndre Fischer		> $(MISC)/$(@:b)_$(RTL_OS)_$(RTL_ARCH)$(@:e).update.xml
263cdf0e10cSrcweir
264cdf0e10cSrcweiropenofficewithjre_%{$(PKGFORMAT:^".")} :
265aa3f9146SAndre Fischer	$(MAKE_INSTALLER_COMMAND) -p Apache_OpenOffice_wJRE -msitemplate $(MSIOFFICETEMPLATEDIR)
266cdf0e10cSrcweir
267cdf0e10cSrcweiropenofficedev_%{$(PKGFORMAT:^".")} :
268aa3f9146SAndre Fischer	$(MAKE_INSTALLER_COMMAND)		\
269aa3f9146SAndre Fischer		-p Apache_OpenOffice_Dev	\
270aa3f9146SAndre Fischer		-msitemplate $(MSIOFFICETEMPLATEDIR)
271aa3f9146SAndre Fischer	$(GEN_UPDATE_INFO_COMMAND)			\
272aa3f9146SAndre Fischer		--product Apache_OpenOffice_Dev 	\
273aa3f9146SAndre Fischer		$(PRJ)$/util$/update.xml 		\
274aa3f9146SAndre Fischer		> $(MISC)/$(@:b)_$(RTL_OS)_$(RTL_ARCH)$(@:e).update.xml
275cdf0e10cSrcweir
276cdf0e10cSrcweirooolanguagepack_%{$(PKGFORMAT:^".")} :
277aa3f9146SAndre Fischer	$(MAKE_INSTALLER_COMMAND)			\
278aa3f9146SAndre Fischer		-p Apache_OpenOffice			\
279aa3f9146SAndre Fischer		-msitemplate $(MSILANGPACKTEMPLATEDIR)	\
280aa3f9146SAndre Fischer		-languagepack
281cdf0e10cSrcweir
282cdf0e10cSrcweirooodevlanguagepack_%{$(PKGFORMAT:^".")} :
283aa3f9146SAndre Fischer	$(MAKE_INSTALLER_COMMAND) -p Apache_OpenOffice_Dev -msitemplate $(MSILANGPACKTEMPLATEDIR) -languagepack
284cdf0e10cSrcweir
285cdf0e10cSrcweirsdkoo_%{$(PKGFORMAT:^".")} :
286aa3f9146SAndre Fischer	$(MAKE_INSTALLER_COMMAND) -p Apache_OpenOffice_SDK -msitemplate $(MSISDKOOTEMPLATEDIR) -dontstrip
287cdf0e10cSrcweir
288cdf0e10cSrcweirsdkoodev_%{$(PKGFORMAT:^".")} :
289aa3f9146SAndre Fischer	$(MAKE_INSTALLER_COMMAND) -p Apache_OpenOffice_Dev_SDK -msitemplate $(MSISDKOOTEMPLATEDIR) -dontstrip
290cdf0e10cSrcweir
291cdf0e10cSrcweir.ELSE			# "$(alllangiso)"!=""
292cdf0e10cSrcweiropenoffice:
293cdf0e10cSrcweir	@echo cannot pack nothing...
294cdf0e10cSrcweir
295cdf0e10cSrcweir.ENDIF			# "$(alllangiso)"!=""
296cdf0e10cSrcweir
297cdf0e10cSrcweir$(BIN)$/%.py : $(SOLARSHAREDBIN)$/pyuno$/%.py
298*9f91b7e3SAndre Fischer	$(COPY) $< $@
299cdf0e10cSrcweir
300910823aeSJürgen Schmidt$(BIN)$/intro.zip : $(SOLARCOMMONPCKDIR)$/intro.zip
301cdf0e10cSrcweir	$(COPY) $< $@
302cdf0e10cSrcweir
303910823aeSJürgen Schmidt$(BIN)$/dev$/intro.zip : $(SOLARCOMMONPCKDIR)$/openoffice_dev$/intro.zip
304cdf0e10cSrcweir	@-$(MKDIR) $(@:d)
305cdf0e10cSrcweir	$(COPY) $< $@
306cdf0e10cSrcweir
307*9f91b7e3SAndre Fischer
308*9f91b7e3SAndre Fischer.IF "$(OS)" == "WNT"
309*9f91b7e3SAndre Fischerpatch_create .PHONY : $(PRJ)$/data
310*9f91b7e3SAndre Fischer	perl -I $(SOLARENV)$/bin/modules $(SOLARENV)$/bin$/patch_create.pl	\
311*9f91b7e3SAndre Fischer		--product-name Apache_OpenOffice				\
312*9f91b7e3SAndre Fischer		--output-path $(OUT)						\
313*9f91b7e3SAndre Fischer		--data-path $(PRJ)$/data					\
314*9f91b7e3SAndre Fischer		--lst-file $(PRJ)$/util$/openoffice.lst
315*9f91b7e3SAndre Fischerpatch_apply .PHONY :
316*9f91b7e3SAndre Fischer	perl -I $(SOLARENV)$/bin/modules $(SOLARENV)$/bin$/patch_apply.pl \
317*9f91b7e3SAndre Fischer		../wntmsci12.pro/Apache_OpenOffice/msp/v-4-0-1_v-4-1-0/en-US/openoffice.msp
318*9f91b7e3SAndre Fischer
319*9f91b7e3SAndre Fischer$(PRJ)$/data :
320*9f91b7e3SAndre Fischer	mkdir $@
321*9f91b7e3SAndre Fischer.ELSE
322*9f91b7e3SAndre Fischerpatch .PHONY :
323*9f91b7e3SAndre Fischer	@echo "patches can only be created on Windows at the moment"
324*9f91b7e3SAndre Fischer.ENDIF
325*9f91b7e3SAndre Fischer
326*9f91b7e3SAndre Fischer
327b6dfe6c8SAndre Fischermsitemplates .PHONY: msi_template_files msi_langpack_template_files msi_sdk_template_files
3287a3dfa40SAndre Fischer
3297a3dfa40SAndre FischerMSI_OFFICE_TEMPLATE_FILES=		\
3307a3dfa40SAndre Fischer	ActionTe.idt			\
3317a3dfa40SAndre Fischer	AdminExe.idt			\
3327a3dfa40SAndre Fischer	AdminUIS.idt			\
3337a3dfa40SAndre Fischer	AdvtExec.idt			\
3347a3dfa40SAndre Fischer	AppSearc.idt			\
3357a3dfa40SAndre Fischer	Binary.idt			\
3367a3dfa40SAndre Fischer	CheckBox.idt			\
3377a3dfa40SAndre Fischer	Control.idt			\
3387a3dfa40SAndre Fischer	ControlC.idt			\
3397a3dfa40SAndre Fischer	ControlE.idt			\
3407a3dfa40SAndre Fischer	CustomAc.idt			\
3417a3dfa40SAndre Fischer	Dialog.idt			\
3427a3dfa40SAndre Fischer	Error.idt			\
3437a3dfa40SAndre Fischer	EventMap.idt			\
3447a3dfa40SAndre Fischer	InstallE.idt			\
3457a3dfa40SAndre Fischer	InstallU.idt			\
3467a3dfa40SAndre Fischer	LaunchCo.idt			\
3477a3dfa40SAndre Fischer	ListBox.idt			\
3487a3dfa40SAndre Fischer	Property.idt			\
3497a3dfa40SAndre Fischer	RadioBut.idt			\
3507a3dfa40SAndre Fischer	RegLocat.idt			\
3517a3dfa40SAndre Fischer	Signatur.idt			\
3527a3dfa40SAndre Fischer	TextStyl.idt			\
3537a3dfa40SAndre Fischer	UIText.idt			\
3547a3dfa40SAndre Fischer	_Validat.idt			\
3557a3dfa40SAndre Fischer	codes.txt			\
3567a3dfa40SAndre Fischer	codes_broo.txt			\
3577a3dfa40SAndre Fischer	codes_broodev.txt		\
3587a3dfa40SAndre Fischer	codes_ooodev.txt		\
3597a3dfa40SAndre Fischer	components.txt			\
3607a3dfa40SAndre Fischer	upgradecode_remove_ooo.txt	\
3617a3dfa40SAndre Fischer	Binary/Banner.bmp		\
3627a3dfa40SAndre Fischer	Binary/Image.bmp		\
3637a3dfa40SAndre Fischer	Binary/caution.ico		\
3647a3dfa40SAndre Fischer	Binary/dontinstall.ico		\
3657a3dfa40SAndre Fischer	Binary/install.ico		\
3667a3dfa40SAndre Fischer	Binary/installfirstuse.ico	\
3677a3dfa40SAndre Fischer	Binary/installpartial.ico	\
3687a3dfa40SAndre Fischer	Binary/installstatemenu.ico	\
3697a3dfa40SAndre Fischer	Binary/networkinstall.ico	\
3707a3dfa40SAndre Fischer	Binary/newfolder.ico		\
3717a3dfa40SAndre Fischer	Binary/openfolder.ico		\
3727a3dfa40SAndre Fischer	Binary/setup.ico		\
3737a3dfa40SAndre Fischer	Binary/setupcomplete.ico	\
3747a3dfa40SAndre Fischer	Binary/setuppartial.ico		\
3757a3dfa40SAndre Fischer	Binary/setuprepair.ico		\
3767a3dfa40SAndre Fischer	Binary/trashcan.ico		\
3777a3dfa40SAndre Fischer	Binary/up.ico
3787a3dfa40SAndre Fischer
3797a3dfa40SAndre FischerMSI_LANGPACK_TEMPLATE_FILES=		\
3807a3dfa40SAndre Fischer	ActionTe.idt			\
3817a3dfa40SAndre Fischer	AdminExe.idt			\
3827a3dfa40SAndre Fischer	AdminUIS.idt			\
3837a3dfa40SAndre Fischer	AdvtExec.idt			\
3847a3dfa40SAndre Fischer	Binary.idt			\
3857a3dfa40SAndre Fischer	CheckBox.idt			\
3867a3dfa40SAndre Fischer	Control.idt			\
3877a3dfa40SAndre Fischer	ControlC.idt			\
3887a3dfa40SAndre Fischer	ControlE.idt			\
3897a3dfa40SAndre Fischer	CustomAc.idt			\
3907a3dfa40SAndre Fischer	Dialog.idt			\
3917a3dfa40SAndre Fischer	Error.idt			\
3927a3dfa40SAndre Fischer	EventMap.idt			\
3937a3dfa40SAndre Fischer	InstallE.idt			\
3947a3dfa40SAndre Fischer	InstallU.idt			\
3957a3dfa40SAndre Fischer	LaunchCo.idt			\
3967a3dfa40SAndre Fischer	ListBox.idt			\
3977a3dfa40SAndre Fischer	Property.idt			\
3987a3dfa40SAndre Fischer	RadioBut.idt			\
3997a3dfa40SAndre Fischer	TextStyl.idt			\
4007a3dfa40SAndre Fischer	UIText.idt			\
4017a3dfa40SAndre Fischer	_Validat.idt			\
4027a3dfa40SAndre Fischer	bro_patchcodes.txt		\
4037a3dfa40SAndre Fischer	brodev_patchcodes.txt		\
4047a3dfa40SAndre Fischer	codes.txt			\
4057a3dfa40SAndre Fischer	codes_broo.txt			\
4067a3dfa40SAndre Fischer	codes_ooodev.txt		\
4077a3dfa40SAndre Fischer	components.txt			\
4087a3dfa40SAndre Fischer	ooo_patchcodes.txt		\
4097a3dfa40SAndre Fischer	ooodev_patchcodes.txt		\
4107a3dfa40SAndre Fischer	Binary/Banner.bmp
4117a3dfa40SAndre Fischer
4127a3dfa40SAndre FischerMSI_SDK_TEMPLATE_FILES=			\
4137a3dfa40SAndre Fischer	ActionTe.idt			\
4147a3dfa40SAndre Fischer	AdminExe.idt			\
4157a3dfa40SAndre Fischer	AdminUIS.idt			\
4167a3dfa40SAndre Fischer	AdvtExec.idt			\
4177a3dfa40SAndre Fischer	AppSearc.idt			\
4187a3dfa40SAndre Fischer	Binary.idt			\
4197a3dfa40SAndre Fischer	CheckBox.idt			\
4207a3dfa40SAndre Fischer	Control.idt			\
4217a3dfa40SAndre Fischer	ControlC.idt			\
4227a3dfa40SAndre Fischer	ControlE.idt			\
4237a3dfa40SAndre Fischer	CustomAc.idt			\
4247a3dfa40SAndre Fischer	Dialog.idt			\
4257a3dfa40SAndre Fischer	Error.idt			\
4267a3dfa40SAndre Fischer	EventMap.idt			\
4277a3dfa40SAndre Fischer	InstallE.idt			\
4287a3dfa40SAndre Fischer	InstallU.idt			\
4297a3dfa40SAndre Fischer	LaunchCo.idt			\
4307a3dfa40SAndre Fischer	ListBox.idt			\
4317a3dfa40SAndre Fischer	Property.idt			\
4327a3dfa40SAndre Fischer	RadioBut.idt			\
4337a3dfa40SAndre Fischer	RegLocat.idt			\
4347a3dfa40SAndre Fischer	Signatur.idt			\
4357a3dfa40SAndre Fischer	TextStyl.idt			\
4367a3dfa40SAndre Fischer	UIText.idt			\
4377a3dfa40SAndre Fischer	_Validat.idt			\
4387a3dfa40SAndre Fischer	codes.txt			\
4397a3dfa40SAndre Fischer	components.txt			\
4407a3dfa40SAndre Fischer	Binary/Banner.bmp		\
4417a3dfa40SAndre Fischer	Binary/Image.bmp		\
4427a3dfa40SAndre Fischer	Binary/caution.ico		\
4437a3dfa40SAndre Fischer	Binary/dontinstall.ico		\
4447a3dfa40SAndre Fischer	Binary/install.ico		\
4457a3dfa40SAndre Fischer	Binary/installfirstuse.ico	\
4467a3dfa40SAndre Fischer	Binary/installpartial.ico	\
4477a3dfa40SAndre Fischer	Binary/installstatemenu.ico	\
4487a3dfa40SAndre Fischer	Binary/networkinstall.ico	\
4497a3dfa40SAndre Fischer	Binary/newfolder.ico		\
4507a3dfa40SAndre Fischer	Binary/openfolder.ico		\
4517a3dfa40SAndre Fischer	Binary/setup.ico		\
4527a3dfa40SAndre Fischer	Binary/setupcomplete.ico	\
4537a3dfa40SAndre Fischer	Binary/setuppartial.ico		\
4547a3dfa40SAndre Fischer	Binary/setuprepair.ico		\
4557a3dfa40SAndre Fischer	Binary/trashcan.ico		\
4567a3dfa40SAndre Fischer	Binary/up.ico
4577a3dfa40SAndre Fischer
4587a3dfa40SAndre Fischermsi_template_files .PHONY:					\
4597a3dfa40SAndre Fischer	$(MSIOFFICETEMPLATEDIR)					\
4607a3dfa40SAndre Fischer	$(MSIOFFICETEMPLATEDIR)$/Binary 			\
4617a3dfa40SAndre Fischer	$(MSIOFFICETEMPLATEDIR)$/{$(MSI_OFFICE_TEMPLATE_FILES)}
4627a3dfa40SAndre Fischer$(MSIOFFICETEMPLATEDIR) $(MSIOFFICETEMPLATEDIR)$/Binary :
4637a3dfa40SAndre Fischer	-$(MKDIRHIER) $@
4647a3dfa40SAndre Fischer$(MSIOFFICETEMPLATEDIR)$/% : $(MSIOFFICETEMPLATESOURCE)$/%
4657a3dfa40SAndre Fischer	$(GNUCOPY) $< $@
4667a3dfa40SAndre Fischer
4677a3dfa40SAndre Fischermsi_langpack_template_files .PHONY :				\
4687a3dfa40SAndre Fischer	$(MSILANGPACKTEMPLATEDIR)				\
4697a3dfa40SAndre Fischer	$(MSILANGPACKTEMPLATEDIR)$/Binary			\
4707a3dfa40SAndre Fischer	$(MSILANGPACKTEMPLATEDIR)$/{$(MSI_LANGPACK_TEMPLATE_FILES)}
4717a3dfa40SAndre Fischer$(MSILANGPACKTEMPLATEDIR) $(MSILANGPACKTEMPLATEDIR)$/Binary  :
4727a3dfa40SAndre Fischer	-$(MKDIRHIER) $@
4737a3dfa40SAndre Fischer$(MSILANGPACKTEMPLATEDIR)$/% : $(MSILANGPACKTEMPLATESOURCE)$/%
4747a3dfa40SAndre Fischer	$(GNUCOPY) $< $@
4757a3dfa40SAndre Fischer
4767a3dfa40SAndre Fischer
4777a3dfa40SAndre Fischermsi_sdk_template_files .PHONY :					\
4787a3dfa40SAndre Fischer	$(MSISDKOOTEMPLATEDIR)					\
4797a3dfa40SAndre Fischer	$(MSISDKOOTEMPLATEDIR)$/Binary				\
4807a3dfa40SAndre Fischer	$(MSISDKOOTEMPLATEDIR)$/{$(MSI_SDK_TEMPLATE_FILES)}
4817a3dfa40SAndre Fischer$(MSISDKOOTEMPLATEDIR) $(MSISDKOOTEMPLATEDIR)$/Binary :
4827a3dfa40SAndre Fischer	-$(MKDIRHIER) $@
4837a3dfa40SAndre Fischer$(MSISDKOOTEMPLATEDIR)/% : $(MSISDKOOTEMPLATESOURCE)$/%
4847a3dfa40SAndre Fischer	$(GNUCOPY) $< $@
485*9f91b7e3SAndre Fischer
486*9f91b7e3SAndre Fischer
487*9f91b7e3SAndre Fischer# Local Variables:
488*9f91b7e3SAndre Fischer# tab-width: 8
489*9f91b7e3SAndre Fischer# End:
490