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# PERL:=@echo
32cdf0e10cSrcweir
33cdf0e10cSrcweir# watch for the path delimiter
34cdf0e10cSrcweir.IF "$(GUI)"=="WNT"
35cdf0e10cSrcweirPYTHONPATH:=$(PWD)$/$(BIN);$(SOLARLIBDIR);$(SOLARLIBDIR)$/python;$(SOLARLIBDIR)$/python$/lib-dynload
36cdf0e10cSrcweir.ELSE			# "$(GUI)"=="WNT"
37cdf0e10cSrcweirPYTHONPATH:=$(PWD)$/$(BIN):$(SOLARLIBDIR):$(SOLARLIBDIR)$/python:$(SOLARLIBDIR)$/python$/lib-dynload
38cdf0e10cSrcweir.ENDIF			# "$(GUI)"=="WNT"
39cdf0e10cSrcweir.EXPORT: PYTHONPATH
40cdf0e10cSrcweir
41cdf0e10cSrcweir.IF "$(CWS_WORK_STAMP)"=="" || "$(UPDATER)"!=""
42cdf0e10cSrcweirENABLE_DOWNLOADSETS*=TRUE
43cdf0e10cSrcweir.ENDIF			# "$(CWS_WORK_STAMP)"=="" || "$(UPDATER)"!=""
44cdf0e10cSrcweir.IF "$(FORCE_DOWNLOADSETS)"!=""
45cdf0e10cSrcweirENABLE_DOWNLOADSETS=TRUE
46cdf0e10cSrcweir.ENDIF			# "$(FORCE_DOWNLOADSETS)"!=""
47cdf0e10cSrcweir
48cdf0e10cSrcweir.EXPORT: ENABLE_DOWNLOADSETS
49cdf0e10cSrcweir.EXPORT: LAST_MINOR
50cdf0e10cSrcweir.EXPORT: PRJ
51cdf0e10cSrcweir.EXPORT: PRJNAME
52cdf0e10cSrcweir
53cdf0e10cSrcweir.IF "$(OS)"=="LINUX"
54cdf0e10cSrcweirDONT_REMOVE_PACKAGE:=TRUE
55cdf0e10cSrcweir.EXPORT: DONT_REMOVE_PACKAGE
56cdf0e10cSrcweir.ENDIF          # "$(OS)"=="LINUX"
57cdf0e10cSrcweir
58cdf0e10cSrcweir.INCLUDE .IGNORE: $(SRC_ROOT)$/cwsname.mk
59cdf0e10cSrcweir
60cdf0e10cSrcweirSHARED_COM_SDK_PATH*:=.
61cdf0e10cSrcweir
62cdf0e10cSrcweirINSTALLDIR=$(OUT)
63cdf0e10cSrcweir
64cdf0e10cSrcweir.INCLUDE: target.mk
65cdf0e10cSrcweir
66cdf0e10cSrcweirLOCALPYFILES= \
67cdf0e10cSrcweir    $(BIN)$/uno.py \
68cdf0e10cSrcweir	$(BIN)$/unohelper.py \
69cdf0e10cSrcweir	$(BIN)$/pythonloader.py \
70cdf0e10cSrcweir	$(BIN)$/pythonscript.py \
71cdf0e10cSrcweir	$(BIN)$/officehelper.py \
72cdf0e10cSrcweir	$(BIN)$/mailmerge.py
73cdf0e10cSrcweir
74cdf0e10cSrcweirxxxx:
75cdf0e10cSrcweir    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
76cdf0e10cSrcweir
77cdf0e10cSrcweir.IF "$(GUI)"!="WNT" && "$(EPM)"=="NO" && "$(USE_PACKAGER)"==""
78cdf0e10cSrcweirALLTAR  : $(LOCALPYFILES)
79cdf0e10cSrcweir	@echo "No EPM: do no packaging at this stage"
80cdf0e10cSrcweir.ELSE			# "$(GUI)"!="WNT" && "$(EPM)"=="NO" && "$(USE_PACKAGER)"==""
81cdf0e10cSrcweir.IF "$(UPDATER)"=="" || "$(USE_PACKAGER)"==""
82cdf0e10cSrcweir.IF "$(BUILD_TYPE)"=="$(BUILD_TYPE:s/ODK//)"
83cdf0e10cSrcweirALLTAR : openoffice
84cdf0e10cSrcweir.ELSE
85*910823aeSJürgen SchmidtALLTAR : openoffice sdkoo_en-US
86*910823aeSJürgen Schmidt#ALLTAR : openoffice sdkoo_en-US ure_en-US
87cdf0e10cSrcweir.ENDIF
88cdf0e10cSrcweir.ELSE			# "$(UPDATER)"=="" || "$(USE_PACKAGER)"==""
89cdf0e10cSrcweirALLTAR : updatepack
90cdf0e10cSrcweir.ENDIF			# "$(UPDATER)"=="" || "$(USE_PACKAGER)"==""
91cdf0e10cSrcweir.ENDIF			# "$(GUI)"!="WNT" && "$(EPM)"=="NO" && "$(USE_PACKAGER)"==""
92cdf0e10cSrcweir
93cdf0e10cSrcweir.IF "$(FORCE2ARCHIVE)" == "TRUE"
94cdf0e10cSrcweirPKGFORMAT = archive
95cdf0e10cSrcweir.END
96cdf0e10cSrcweir
97cdf0e10cSrcweir.IF "$(MAKETARGETS:e)"!=""
98cdf0e10cSrcweirPKGFORMAT+=$(MAKETARGETS:e:s/.//)
99cdf0e10cSrcweir.ENDIF			# "$(MAKETARGETS:e)"!=""
100cdf0e10cSrcweir
101cdf0e10cSrcweir# Independent of PKGFORMAT, always build a default-language openoffice product
102cdf0e10cSrcweir# also in archive format, so that tests that require an OOo installation (like
103cdf0e10cSrcweir# smoketestoo_native) have one available:
104cdf0e10cSrcweiropenoffice_$(defaultlangiso) : $$@.archive
105cdf0e10cSrcweir
106cdf0e10cSrcweir.IF "$(VERBOSE)"=="TRUE"
107cdf0e10cSrcweirVERBOSESWITCH=-verbose
1083b45f81aSAriel Constenla-Haile.ELIF "$(VERBOSE)"=="FALSE"
109cdf0e10cSrcweirVERBOSESWITCH=-quiet
110cdf0e10cSrcweir.ENDIF
111cdf0e10cSrcweir
1123b45f81aSAriel Constenla-Haile.IF "$(VERBOSE_INSTALLER)"=="TRUE"
1133b45f81aSAriel Constenla-HaileVERBOSESWITCH+=-log
1143b45f81aSAriel Constenla-Haile.ENDIF
1153b45f81aSAriel Constenla-Haile
116c81b3157SJürgen Schmidt# New target to prepare a source release
117c81b3157SJürgen SchmidtSRC_RELEASE_OUT_DIR=$(shell cd $(OUT) && pwd)$/AOO_SRC_Release
118c81b3157SJürgen Schmidt
119c81b3157SJürgen Schmidtaoo_srcrelease: $(SOLARENV)$/bin$/srcrelease.xml
120c81b3157SJürgen Schmidt	@-$(MKDIR) $(OUT)$/AOO_SRC_Release
121c81b3157SJürgen Schmidt	$(ANT) -f $(SOLARENV)$/bin$/srcrelease.xml -q -Dbasedir=$(SOURCE_ROOT_DIR) -Dout.dir=$(SRC_RELEASE_OUT_DIR)
122c81b3157SJürgen Schmidt
123cdf0e10cSrcweirupdatepack:
124cdf0e10cSrcweir	$(PERL) -w $(SOLARENV)$/bin$/packager.pl
125cdf0e10cSrcweir
126cdf0e10cSrcweir.IF "$(alllangiso)"!=""
127cdf0e10cSrcweir
128cdf0e10cSrcweiropenoffice: $(foreach,i,$(alllangiso) openoffice_$i)
129cdf0e10cSrcweir
130cdf0e10cSrcweiropenofficedev: $(foreach,i,$(alllangiso) openofficedev_$i)
131cdf0e10cSrcweir
132cdf0e10cSrcweiropenofficewithjre: $(foreach,i,$(alllangiso) openofficewithjre_$i)
133cdf0e10cSrcweir
134cdf0e10cSrcweirooolanguagepack : $(foreach,i,$(alllangiso) ooolanguagepack_$i)
135cdf0e10cSrcweir
136cdf0e10cSrcweirooodevlanguagepack: $(foreach,i,$(alllangiso) ooodevlanguagepack_$i)
137cdf0e10cSrcweir
138cdf0e10cSrcweirsdkoo: $(foreach,i,$(alllangiso) sdkoo_$i)
139cdf0e10cSrcweir
140cdf0e10cSrcweirsdkoodev: $(foreach,i,$(alllangiso) sdkoodev_$i)
141cdf0e10cSrcweir
142*910823aeSJürgen Schmidt#ure: $(foreach,i,$(alllangiso) ure_$i)
143cdf0e10cSrcweir
144cdf0e10cSrcweirMSIOFFICETEMPLATESOURCE=$(PRJ)$/inc_openoffice$/windows$/msi_templates
145cdf0e10cSrcweirMSILANGPACKTEMPLATESOURCE=$(PRJ)$/inc_ooolangpack$/windows$/msi_templates
146*910823aeSJürgen Schmidt#MSIURETEMPLATESOURCE=$(PRJ)$/inc_ure$/windows$/msi_templates
147cdf0e10cSrcweirMSISDKOOTEMPLATESOURCE=$(PRJ)$/inc_sdkoo$/windows$/msi_templates
148cdf0e10cSrcweir
149cdf0e10cSrcweir.IF "$(BUILD_SPECIAL)"!=""
150cdf0e10cSrcweirMSIOFFICETEMPLATEDIR=$(MSIOFFICETEMPLATESOURCE)
151cdf0e10cSrcweirMSILANGPACKTEMPLATEDIR=$(MSILANGPACKTEMPLATESOURCE)
152*910823aeSJürgen Schmidt#MSIURETEMPLATEDIR=$(MSIURETEMPLATESOURCE)
153cdf0e10cSrcweirMSISDKOOTEMPLATEDIR=$(MSISDKOOTEMPLATESOURCE)
154cdf0e10cSrcweir.ELSE			# "$(BUILD_SPECIAL)"!=""
155cdf0e10cSrcweirNOLOGOSPLASH:=$(BIN)$/intro.zip
156cdf0e10cSrcweirDEVNOLOGOSPLASH:=$(BIN)$/dev$/intro.zip
157cdf0e10cSrcweirMSIOFFICETEMPLATEDIR=$(MISC)$/openoffice$/msi_templates
158cdf0e10cSrcweirMSILANGPACKTEMPLATEDIR=$(MISC)$/ooolangpack$/msi_templates
159*910823aeSJürgen Schmidt#MSIURETEMPLATEDIR=$(MISC)$/ure$/msi_templates
160cdf0e10cSrcweirMSISDKOOTEMPLATEDIR=$(MISC)$/sdkoo$/msi_templates
161cdf0e10cSrcweir
162451f97f9SPedro GiffuniADDDEPS=$(NOLOGOSPLASH) $(DEVNOLOGOSPLASH)
163451f97f9SPedro Giffuni
164cdf0e10cSrcweir.IF "$(OS)" == "WNT"
165cdf0e10cSrcweirADDDEPS+=hack_msitemplates
166cdf0e10cSrcweir.ENDIF
167cdf0e10cSrcweir
168cdf0e10cSrcweir$(foreach,i,$(alllangiso) openoffice_$i) : $(ADDDEPS)
169cdf0e10cSrcweiropenoffice_$(defaultlangiso).archive : $(ADDDEPS)
170cdf0e10cSrcweir
171cdf0e10cSrcweir$(foreach,i,$(alllangiso) openofficedev_$i) : $(ADDDEPS)
172cdf0e10cSrcweir
173cdf0e10cSrcweir$(foreach,i,$(alllangiso) openofficewithjre_$i) : $(ADDDEPS)
174cdf0e10cSrcweir
175cdf0e10cSrcweir$(foreach,i,$(alllangiso) ooolanguagepack_$i) : $(ADDDEPS)
176cdf0e10cSrcweir
177cdf0e10cSrcweir$(foreach,i,$(alllangiso) ooodevlanguagepack_$i) : $(ADDDEPS)
178cdf0e10cSrcweir
179cdf0e10cSrcweir$(foreach,i,$(alllangiso) sdkoo_$i) : $(ADDDEPS)
180cdf0e10cSrcweir
181cdf0e10cSrcweir$(foreach,i,$(alllangiso) sdkoodev_$i) : $(ADDDEPS)
182c81b3157SJürgen Schmidt
183*910823aeSJürgen Schmidt#$(foreach,i,$(alllangiso) ure_$i) : $(ADDDEPS)
184cdf0e10cSrcweir
185cdf0e10cSrcweir.IF "$(MAKETARGETS)"!=""
186cdf0e10cSrcweir$(MAKETARGETS) : $(ADDDEPS)
187cdf0e10cSrcweir.ENDIF			# "$(MAKETARGETS)"!=""
188cdf0e10cSrcweir
189cdf0e10cSrcweir.ENDIF			# "$(BUILD_SPECIAL)"!=""
190cdf0e10cSrcweir
191cdf0e10cSrcweir$(foreach,i,$(alllangiso) openoffice_$i) : $$@{$(PKGFORMAT:^".")}
192cdf0e10cSrcweir.IF "$(MAKETARGETS)"!=""
193cdf0e10cSrcweir.IF "$(MAKETARGETS:e)"=="" && "$(MAKETARGETS:s/_//)"!="$(MAKETARGETS)"
194cdf0e10cSrcweir$(MAKETARGETS) : $$@{$(PKGFORMAT:^".")}
195cdf0e10cSrcweir$(MAKETARGETS){$(PKGFORMAT:^".")} : $(ADDDEPS)
196cdf0e10cSrcweir.ENDIF			# "$(MAKETARGETS:e)"=="" && "$(MAKETARGETS:s/_//)"!="$(MAKETARGETS)"
197cdf0e10cSrcweir.ENDIF			# "$(MAKETARGETS)"!=""
198cdf0e10cSrcweiropenoffice_%{$(PKGFORMAT:^".") .archive} :
199ff3f4ebcSOliver-Rainer Wittmann	$(PERL) -w $(SOLARENV)$/bin$/make_installer.pl -f $(PRJ)$/util$/openoffice.lst -l $(subst,$(@:s/_/ /:1)_, $(@:b)) -p Apache_OpenOffice -u $(OUT) -buildid $(BUILD) -msitemplate $(MSIOFFICETEMPLATEDIR) -msilanguage $(MISC)$/win_ulffiles -format $(@:e:s/.//) $(VERBOSESWITCH)
200ff3f4ebcSOliver-Rainer Wittmann	$(PERL) -w $(SOLARENV)$/bin$/gen_update_info.pl --buildid $(BUILD) --arch "$(RTL_ARCH)" --os "$(RTL_OS)" --lstfile $(PRJ)$/util$/openoffice.lst --product Apache_OpenOffice --languages $(subst,$(@:s/_/ /:1)_, $(@:b)) $(PRJ)$/util$/update.xml > $(MISC)/$(@:b)_$(RTL_OS)_$(RTL_ARCH)$(@:e).update.xml
201cdf0e10cSrcweir
202cdf0e10cSrcweir$(foreach,i,$(alllangiso) openofficewithjre_$i) : $$@{$(PKGFORMAT:^".")}
203cdf0e10cSrcweiropenofficewithjre_%{$(PKGFORMAT:^".")} :
204ff3f4ebcSOliver-Rainer Wittmann	$(PERL) -w $(SOLARENV)$/bin$/make_installer.pl -f $(PRJ)$/util$/openoffice.lst -l $(subst,$(@:s/_/ /:1)_, $(@:b)) -p Aapche_OpenOffice_wJRE -u $(OUT) -buildid $(BUILD) -msitemplate $(MSIOFFICETEMPLATEDIR) -msilanguage $(MISC)$/win_ulffiles -format $(@:e:s/.//) $(VERBOSESWITCH)
205cdf0e10cSrcweir
206cdf0e10cSrcweir$(foreach,i,$(alllangiso) openofficedev_$i) : $$@{$(PKGFORMAT:^".")}
207cdf0e10cSrcweiropenofficedev_%{$(PKGFORMAT:^".")} :
208ff3f4ebcSOliver-Rainer Wittmann	$(PERL) -w $(SOLARENV)$/bin$/make_installer.pl -f $(PRJ)$/util$/openoffice.lst -l $(subst,$(@:s/_/ /:1)_, $(@:b)) -p Apache_OpenOffice_Dev -u $(OUT) -buildid $(BUILD) -msitemplate $(MSIOFFICETEMPLATEDIR) -msilanguage $(MISC)$/win_ulffiles -format $(@:e:s/.//) $(VERBOSESWITCH)
209ff3f4ebcSOliver-Rainer Wittmann	$(PERL) -w $(SOLARENV)$/bin$/gen_update_info.pl --buildid $(BUILD) --arch "$(RTL_ARCH)" --os "$(RTL_OS)" --lstfile $(PRJ)$/util$/openoffice.lst --product Apache_OpenOffice_Dev --languages $(subst,$(@:s/_/ /:1)_, $(@:b)) $(PRJ)$/util$/update.xml > $(MISC)/$(@:b)_$(RTL_OS)_$(RTL_ARCH)$(@:e).update.xml
210cdf0e10cSrcweir
211cdf0e10cSrcweir$(foreach,i,$(alllangiso) ooolanguagepack_$i) : $$@{$(PKGFORMAT:^".")}
212cdf0e10cSrcweirooolanguagepack_%{$(PKGFORMAT:^".")} :
213ff3f4ebcSOliver-Rainer Wittmann	$(PERL) -w $(SOLARENV)$/bin$/make_installer.pl -f $(PRJ)$/util$/openoffice.lst -l $(subst,$(@:s/_/ /:1)_, $(@:b)) -p Apache_OpenOffice -u $(OUT) -buildid $(BUILD) -msitemplate $(MSILANGPACKTEMPLATEDIR) -msilanguage $(MISC)$/win_ulffiles -languagepack -format $(@:e:s/.//) $(VERBOSESWITCH)
214cdf0e10cSrcweir
215cdf0e10cSrcweir$(foreach,i,$(alllangiso) ooodevlanguagepack_$i) : $$@{$(PKGFORMAT:^".")}
216cdf0e10cSrcweirooodevlanguagepack_%{$(PKGFORMAT:^".")} :
217ff3f4ebcSOliver-Rainer Wittmann	$(PERL) -w $(SOLARENV)$/bin$/make_installer.pl -f $(PRJ)$/util$/openoffice.lst -l $(subst,$(@:s/_/ /:1)_, $(@:b)) -p Apache_OpenOffice_Dev -u $(OUT) -buildid $(BUILD) -msitemplate $(MSILANGPACKTEMPLATEDIR) -msilanguage $(MISC)$/win_ulffiles -languagepack -format $(@:e:s/.//) $(VERBOSESWITCH)
218cdf0e10cSrcweir
219cdf0e10cSrcweir$(foreach,i,$(alllangiso) sdkoo_$i) : $$@{$(PKGFORMAT:^".")}
220cdf0e10cSrcweirsdkoo_%{$(PKGFORMAT:^".")} :
221ff3f4ebcSOliver-Rainer Wittmann	$(PERL) -w $(SOLARENV)$/bin$/make_installer.pl -f $(PRJ)$/util$/openoffice.lst -l $(subst,$(@:s/_/ /:1)_, $(@:b)) -p Apache_OpenOffice_SDK -u $(OUT) -buildid $(BUILD) -msitemplate $(MSISDKOOTEMPLATEDIR) -msilanguage $(MISC)$/win_ulffiles -dontstrip -format $(@:e:s/.//) $(VERBOSESWITCH)
222cdf0e10cSrcweir
223cdf0e10cSrcweir$(foreach,i,$(alllangiso) sdkoodev_$i) : $$@{$(PKGFORMAT:^".")}
224cdf0e10cSrcweirsdkoodev_%{$(PKGFORMAT:^".")} :
225ff3f4ebcSOliver-Rainer Wittmann	$(PERL) -w $(SOLARENV)$/bin$/make_installer.pl -f $(PRJ)$/util$/openoffice.lst -l $(subst,$(@:s/_/ /:1)_, $(@:b)) -p Apache_OpenOffice_Dev_SDK -u $(OUT) -buildid $(BUILD) -msitemplate $(MSISDKOOTEMPLATEDIR) -msilanguage $(MISC)$/win_ulffiles -dontstrip -format $(@:e:s/.//) $(VERBOSESWITCH)
226cdf0e10cSrcweir
227*910823aeSJürgen Schmidt#$(foreach,i,$(alllangiso) ure_$i) : $$@{$(PKGFORMAT:^".")}
228*910823aeSJürgen Schmidt#ure_%{$(PKGFORMAT:^".")} :
229*910823aeSJürgen Schmidt#.IF "$(OS)" == "MACOSX"
230*910823aeSJürgen Schmidt#    @echo 'for now, there is no standalone URE for Mac OS X'
231*910823aeSJürgen Schmidt#.ELSE
232*910823aeSJürgen Schmidt#    $(PERL) -w $(SOLARENV)$/bin$/make_installer.pl -f $(PRJ)$/util$/openoffice.#lst \
233*910823aeSJürgen Schmidt#        -l $(subst,$(@:s/_/ /:1)_, $(@:b)) -p URE -u $(OUT) -buildid $(BUILD) -#format $(@:e:s/.//) $(VERBOSESWITCH) \
234*910823aeSJürgen Schmidt#        -msitemplate $(MSIURETEMPLATEDIR) \
235*910823aeSJürgen Schmidt#        -msilanguage $(MISC)$/win_ulffiles
236*910823aeSJürgen Schmidt#.ENDIF
237cdf0e10cSrcweir
238cdf0e10cSrcweir.IF "$(MAKETARGETS)"!=""
239cdf0e10cSrcweir.IF "$(MAKETARGETS:e)"=="" && "$(MAKETARGETS:s/_//)"!="$(MAKETARGETS)"
240cdf0e10cSrcweir$(MAKETARGETS) : $$@{$(PKGFORMAT:^".")}
241cdf0e10cSrcweir$(MAKETARGETS){$(PKGFORMAT:^".")} : $(ADDDEPS)
242cdf0e10cSrcweir.ENDIF			# "$(MAKETARGETS:e)"=="" && "$(MAKETARGETS:s/_//)"!="$(MAKETARGETS)"
243cdf0e10cSrcweir.ENDIF			# "$(MAKETARGETS)"!=""
244cdf0e10cSrcweir
245cdf0e10cSrcweir.ELSE			# "$(alllangiso)"!=""
246cdf0e10cSrcweiropenoffice:
247cdf0e10cSrcweir	@echo cannot pack nothing...
248cdf0e10cSrcweir
249cdf0e10cSrcweir.ENDIF			# "$(alllangiso)"!=""
250cdf0e10cSrcweir
251cdf0e10cSrcweir.IF "$(LOCALPYFILES)"!=""
252ee75e844SJürgen Schmidt$(foreach,i,$(alllangiso) openoffice_$i{$(PKGFORMAT:^".") .archive} openofficewithjre_$i{$(PKGFORMAT:^".")} openofficedev_$i{$(PKGFORMAT:^".")} sdkoo_$i{$(PKGFORMAT:^".")}) updatepack : $(LOCALPYFILES)
253cdf0e10cSrcweir.ENDIF			# "$(LOCALPYFILES)"!=""
254cdf0e10cSrcweir
255cdf0e10cSrcweir$(BIN)$/%.py : $(SOLARSHAREDBIN)$/pyuno$/%.py
256cdf0e10cSrcweir	@$(COPY) $< $@
257cdf0e10cSrcweir
258*910823aeSJürgen Schmidt#$(BIN)$/intro.zip : $(SOLARCOMMONPCKDIR)$/openoffice_nologo$/intro.zip
259*910823aeSJürgen Schmidt$(BIN)$/intro.zip : $(SOLARCOMMONPCKDIR)$/intro.zip
260cdf0e10cSrcweir	$(COPY) $< $@
261cdf0e10cSrcweir
262*910823aeSJürgen Schmidt#$(BIN)$/dev$/intro.zip : $(SOLARCOMMONPCKDIR)$/openoffice_dev_nologo$/intro.zip
263*910823aeSJürgen Schmidt$(BIN)$/dev$/intro.zip : $(SOLARCOMMONPCKDIR)$/openoffice_dev$/intro.zip
264cdf0e10cSrcweir	@-$(MKDIR) $(@:d)
265cdf0e10cSrcweir	$(COPY) $< $@
266cdf0e10cSrcweir
267cdf0e10cSrcweirhack_msitemplates .PHONY:
268cdf0e10cSrcweir	-$(MKDIRHIER) $(MSIOFFICETEMPLATEDIR)
269cdf0e10cSrcweir	-$(MKDIRHIER) $(MSILANGPACKTEMPLATEDIR)
270*910823aeSJürgen Schmidt#	-$(MKDIRHIER) $(MSIURETEMPLATEDIR)
271cdf0e10cSrcweir	-$(MKDIRHIER) $(MSISDKOOTEMPLATEDIR)
272cdf0e10cSrcweir	-$(MKDIRHIER) $(MSIOFFICETEMPLATEDIR)$/Binary
273cdf0e10cSrcweir	-$(MKDIRHIER) $(MSILANGPACKTEMPLATEDIR)$/Binary
274*910823aeSJürgen Schmidt#	-$(MKDIRHIER) $(MSIURETEMPLATEDIR)$/Binary
275cdf0e10cSrcweir	-$(MKDIRHIER) $(MSISDKOOTEMPLATEDIR)$/Binary
276a4d2899fSPedro Giffuni	$(GNUCOPY) $(MSIOFFICETEMPLATESOURCE)$/*.* $(MSIOFFICETEMPLATEDIR)
277a4d2899fSPedro Giffuni	$(GNUCOPY) $(MSILANGPACKTEMPLATESOURCE)$/*.* $(MSILANGPACKTEMPLATEDIR)
278*910823aeSJürgen Schmidt#	$(GNUCOPY) $(MSIURETEMPLATESOURCE)$/*.* $(MSIURETEMPLATEDIR)
279a4d2899fSPedro Giffuni	$(GNUCOPY) $(MSISDKOOTEMPLATESOURCE)$/*.* $(MSISDKOOTEMPLATEDIR)
280a4d2899fSPedro Giffuni	$(GNUCOPY) $(MSIOFFICETEMPLATESOURCE)$/Binary$/*.* $(MSIOFFICETEMPLATEDIR)$/Binary
281a4d2899fSPedro Giffuni	$(GNUCOPY) $(MSILANGPACKTEMPLATESOURCE)$/Binary$/*.* $(MSILANGPACKTEMPLATEDIR)$/Binary
282*910823aeSJürgen Schmidt#	$(GNUCOPY) $(MSIURETEMPLATESOURCE)$/Binary$/*.* $(MSIURETEMPLATEDIR)$/Binary
283a4d2899fSPedro Giffuni	$(GNUCOPY) $(MSISDKOOTEMPLATESOURCE)$/Binary$/*.* $(MSISDKOOTEMPLATEDIR)$/Binary
284cdf0e10cSrcweir	$(RM) $(MSIOFFICETEMPLATEDIR)$/Binary$/Image.bmp
285cdf0e10cSrcweir	$(RM) $(MSILANGPACKTEMPLATEDIR)$/Binary$/Image.bmp
286*910823aeSJürgen Schmidt#	$(RM) $(MSIURETEMPLATEDIR)$/Binary$/Image.bmp
287cdf0e10cSrcweir	$(RM) $(MSISDKOOTEMPLATEDIR)$/Binary$/Image.bmp
288cdf0e10cSrcweir	$(COPY) $(PRJ)$/res$/nologoinstall.bmp $(MSIOFFICETEMPLATEDIR)$/Binary$/Image.bmp
289cdf0e10cSrcweir	$(COPY) $(PRJ)$/res$/nologoinstall.bmp $(MSILANGPACKTEMPLATEDIR)$/Binary$/Image.bmp
290*910823aeSJürgen Schmidt#	$(COPY) $(PRJ)$/res$/nologoinstall.bmp $(MSIURETEMPLATEDIR)$/Binary$/Image.bmp
291cdf0e10cSrcweir	$(COPY) $(PRJ)$/res$/nologoinstall.bmp $(MSISDKOOTEMPLATEDIR)$/Binary$/Image.bmp
292cdf0e10cSrcweir
293cdf0e10cSrcweir
294