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 28*a29d375cSAndre Fischer.INCLUDE: $(SOLARENVINC)$/version.mk 29cdf0e10cSrcweir 30cdf0e10cSrcweir# watch for the path delimiter 31cdf0e10cSrcweir.IF "$(GUI)"=="WNT" 32cdf0e10cSrcweirPYTHONPATH:=$(PWD)$/$(BIN);$(SOLARLIBDIR);$(SOLARLIBDIR)$/python;$(SOLARLIBDIR)$/python$/lib-dynload 33cdf0e10cSrcweir.ELSE # "$(GUI)"=="WNT" 34cdf0e10cSrcweirPYTHONPATH:=$(PWD)$/$(BIN):$(SOLARLIBDIR):$(SOLARLIBDIR)$/python:$(SOLARLIBDIR)$/python$/lib-dynload 35cdf0e10cSrcweir.ENDIF # "$(GUI)"=="WNT" 36cdf0e10cSrcweir.EXPORT: PYTHONPATH 37cdf0e10cSrcweir 38cdf0e10cSrcweir.IF "$(CWS_WORK_STAMP)"=="" || "$(UPDATER)"!="" 39cdf0e10cSrcweirENABLE_DOWNLOADSETS*=TRUE 40cdf0e10cSrcweir.ENDIF # "$(CWS_WORK_STAMP)"=="" || "$(UPDATER)"!="" 41cdf0e10cSrcweir.IF "$(FORCE_DOWNLOADSETS)"!="" 42cdf0e10cSrcweirENABLE_DOWNLOADSETS=TRUE 43cdf0e10cSrcweir.ENDIF # "$(FORCE_DOWNLOADSETS)"!="" 44cdf0e10cSrcweir 45cdf0e10cSrcweir.EXPORT: ENABLE_DOWNLOADSETS 46cdf0e10cSrcweir.EXPORT: LAST_MINOR 47cdf0e10cSrcweir.EXPORT: PRJ 48cdf0e10cSrcweir.EXPORT: PRJNAME 49cdf0e10cSrcweir 50cdf0e10cSrcweir.IF "$(OS)"=="LINUX" 51cdf0e10cSrcweirDONT_REMOVE_PACKAGE:=TRUE 52cdf0e10cSrcweir.EXPORT: DONT_REMOVE_PACKAGE 53cdf0e10cSrcweir.ENDIF # "$(OS)"=="LINUX" 54cdf0e10cSrcweir 55cdf0e10cSrcweir.INCLUDE .IGNORE: $(SRC_ROOT)$/cwsname.mk 56cdf0e10cSrcweir 57cdf0e10cSrcweirSHARED_COM_SDK_PATH*:=. 58cdf0e10cSrcweir 59cdf0e10cSrcweirINSTALLDIR=$(OUT) 60cdf0e10cSrcweir 61cdf0e10cSrcweir.INCLUDE: target.mk 62cdf0e10cSrcweir 63f5a0c083SAndre Fischer.IF "$(FORCE2ARCHIVE)" == "TRUE" 64f5a0c083SAndre FischerPKGFORMAT = archive 65f5a0c083SAndre Fischer.END 66f5a0c083SAndre Fischer.IF "$(MAKETARGETS:e)"!="" 67f5a0c083SAndre FischerPKGFORMAT+=$(MAKETARGETS:e:s/.//) 68f5a0c083SAndre Fischer.ENDIF 69f5a0c083SAndre Fischer# PKGFORMAT may contain the standard package format twice at this time. 70f5a0c083SAndre Fischer# Provide its content with duplicates removed. 71f5a0c083SAndre FischerPACKAGE_FORMATS=$(uniq $(PKGFORMAT)) 72f5a0c083SAndre Fischer 73f5a0c083SAndre Fischer 7432d4040dSAndre Fischer# The help target belongs after the inclusion of target.mk to not become the default target. 7532d4040dSAndre Fischerhelp .PHONY : 7632d4040dSAndre Fischer @echo "known targets:" 7732d4040dSAndre Fischer @echo " openoffice builds the default installation packages for the platform" 7832d4040dSAndre Fischer @echo " aoo_srcrelease packs the source release package" 7932d4040dSAndre Fischer @echo " updatepack" 8032d4040dSAndre Fischer @echo " openofficedev devloper snapshot" 8132d4040dSAndre Fischer @echo " openofficewithjre" 8232d4040dSAndre Fischer @echo " ooolanguagepack" 8332d4040dSAndre Fischer @echo " ooodevlanguagepack" 8432d4040dSAndre Fischer @echo " sdkoo" 8532d4040dSAndre Fischer @echo " sdkoodev" 86*a29d375cSAndre Fischer @echo " openofficebeta like openoffice but with 'Beta' appended to product name" 8732d4040dSAndre Fischer @echo 889f91b7e3SAndre Fischer @echo "experimental targets:" 89f5a0c083SAndre Fischer @echo " patch-create create a patch for updating an installed office (Windows only)" 90f5a0c083SAndre Fischer @echo " patch-apply apply a previously created patch" 91f5a0c083SAndre Fischer @echo " patch-update-releases-xml" 92677600b0SAndre Fischer @echo " patch-check check if patch can be created (part of patch-create)" 939f91b7e3SAndre Fischer @echo 9432d4040dSAndre Fischer @echo "Most targets (all except aoo_srcrelease and updatepack) accept suffixes" 95fdbb6be0SAndre Fischer @echo " append _<language> to build a target for one language only" 9632d4040dSAndre Fischer @echo " the default set of languages is alllangiso=$(alllangiso)" 97fdbb6be0SAndre Fischer @echo " append .<package_format> to build a target for one package format only" 9832d4040dSAndre Fischer @echo " the default set of package formats is archive and PKGFORMAT=$(PKGFORMAT)" 99fdbb6be0SAndre Fischer @echo " known package formats are: " 100fdbb6be0SAndre Fischer @echo " archive, bsd, deb, dmg, installed, msi, native, osx, pkg, portable, rpm" 10132d4040dSAndre Fischer 10232d4040dSAndre Fischer 1039f91b7e3SAndre FischerLOCALPYFILES= \ 1049f91b7e3SAndre Fischer $(BIN)$/uno.py \ 1059f91b7e3SAndre Fischer $(BIN)$/unohelper.py \ 106cdf0e10cSrcweir $(BIN)$/pythonloader.py \ 107cdf0e10cSrcweir $(BIN)$/pythonscript.py \ 108cdf0e10cSrcweir $(BIN)$/officehelper.py \ 109cdf0e10cSrcweir $(BIN)$/mailmerge.py 110cdf0e10cSrcweir 111cdf0e10cSrcweirxxxx: 112cdf0e10cSrcweir 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 113cdf0e10cSrcweir 114cdf0e10cSrcweir.IF "$(GUI)"!="WNT" && "$(EPM)"=="NO" && "$(USE_PACKAGER)"=="" 115cdf0e10cSrcweirALLTAR : $(LOCALPYFILES) 116cdf0e10cSrcweir @echo "No EPM: do no packaging at this stage" 117cdf0e10cSrcweir.ELSE # "$(GUI)"!="WNT" && "$(EPM)"=="NO" && "$(USE_PACKAGER)"=="" 118cdf0e10cSrcweir.IF "$(UPDATER)"=="" || "$(USE_PACKAGER)"=="" 119cdf0e10cSrcweir.IF "$(BUILD_TYPE)"=="$(BUILD_TYPE:s/ODK//)" 120cdf0e10cSrcweirALLTAR : openoffice 121cdf0e10cSrcweir.ELSE 122910823aeSJürgen SchmidtALLTAR : openoffice sdkoo_en-US 123cdf0e10cSrcweir.ENDIF 124cdf0e10cSrcweir.ELSE # "$(UPDATER)"=="" || "$(USE_PACKAGER)"=="" 125cdf0e10cSrcweirALLTAR : updatepack 126cdf0e10cSrcweir.ENDIF # "$(UPDATER)"=="" || "$(USE_PACKAGER)"=="" 127cdf0e10cSrcweir.ENDIF # "$(GUI)"!="WNT" && "$(EPM)"=="NO" && "$(USE_PACKAGER)"=="" 128cdf0e10cSrcweir 129cdf0e10cSrcweir 130cdf0e10cSrcweir# Independent of PKGFORMAT, always build a default-language openoffice product 131cdf0e10cSrcweir# also in archive format, so that tests that require an OOo installation (like 132cdf0e10cSrcweir# smoketestoo_native) have one available: 13338d57702SAndre Fischeropenoffice_$(defaultlangiso) : $$@.archive 134cdf0e10cSrcweir 135cdf0e10cSrcweir.IF "$(VERBOSE)"=="TRUE" 136cdf0e10cSrcweirVERBOSESWITCH=-verbose 1373b45f81aSAriel Constenla-Haile.ELIF "$(VERBOSE)"=="FALSE" 138cdf0e10cSrcweirVERBOSESWITCH=-quiet 139cdf0e10cSrcweir.ENDIF 140cdf0e10cSrcweir 1414b7a009fSAndre Fischer.IF "$(release)"!="" 1429f91b7e3SAndre FischerRELEASE_SWITCH=-release 1439f91b7e3SAndre Fischer$(foreach,i,$(alllangiso) openoffice_$i.msi) : prepare_release_build 1449f91b7e3SAndre Fischer.ELSE 1459f91b7e3SAndre FischerRELEASE_SWITCH= 1469f91b7e3SAndre Fischer.ENDIF 1479f91b7e3SAndre Fischer 1489f91b7e3SAndre Fischerprepare_release_build .PHONY: 1499f91b7e3SAndre Fischer @$(PERL) -w $(SOLARENV)$/bin$/release_prepare.pl \ 1509f91b7e3SAndre Fischer --lst-file $(PRJ)$/util$/openoffice.lst \ 1519f91b7e3SAndre Fischer --product-name Apache_OpenOffice \ 1529f91b7e3SAndre Fischer --output-path $(OUT) \ 1539f91b7e3SAndre Fischer $(alllangiso) 1549f91b7e3SAndre Fischer 1553b45f81aSAriel Constenla-Haile.IF "$(VERBOSE_INSTALLER)"=="TRUE" 1563b45f81aSAriel Constenla-HaileVERBOSESWITCH+=-log 1573b45f81aSAriel Constenla-Haile.ENDIF 1583b45f81aSAriel Constenla-Haile 159c81b3157SJürgen Schmidt# New target to prepare a source release 160c81b3157SJürgen SchmidtSRC_RELEASE_OUT_DIR=$(shell cd $(OUT) && pwd)$/AOO_SRC_Release 161c81b3157SJürgen Schmidt 162c81b3157SJürgen Schmidtaoo_srcrelease: $(SOLARENV)$/bin$/srcrelease.xml 163c81b3157SJürgen Schmidt @-$(MKDIR) $(OUT)$/AOO_SRC_Release 164c81b3157SJürgen Schmidt $(ANT) -f $(SOLARENV)$/bin$/srcrelease.xml -q -Dbasedir=$(SOURCE_ROOT_DIR) -Dout.dir=$(SRC_RELEASE_OUT_DIR) 165c81b3157SJürgen Schmidt 166cdf0e10cSrcweirupdatepack: 167cdf0e10cSrcweir $(PERL) -w $(SOLARENV)$/bin$/packager.pl 168cdf0e10cSrcweir 16938d57702SAndre Fischer 17038d57702SAndre Fischer 171677600b0SAndre Fischer.IF "$(alllangiso)"=="" 172677600b0SAndre Fischeropenoffice: 173677600b0SAndre Fischer @echo no languages specified => aborting packing 174677600b0SAndre Fischer 175677600b0SAndre Fischer.ELSE # "$(alllangiso)"=="" 176677600b0SAndre Fischer 177677600b0SAndre Fischer# The naming schema of targets is this: <target>_<language>.<package> 178677600b0SAndre Fischer# where <target> is the target base name (like openoffice or sdkoo) 179677600b0SAndre Fischer# <language> is the language name (like en-US or fr) 180677600b0SAndre Fischer# <package> is the package format (like archive, msi, deb, rpm, dmg) 181cdf0e10cSrcweir 18238d57702SAndre Fischer# Add dependencies of basic targets on language specific targets. 183cdf0e10cSrcweiropenoffice: $(foreach,i,$(alllangiso) openoffice_$i) 184cdf0e10cSrcweiropenofficedev: $(foreach,i,$(alllangiso) openofficedev_$i) 185*a29d375cSAndre Fischerbeta: $(foreach,i,$(alllangiso) beta_$i) 186cdf0e10cSrcweiropenofficewithjre: $(foreach,i,$(alllangiso) openofficewithjre_$i) 187cdf0e10cSrcweirooolanguagepack : $(foreach,i,$(alllangiso) ooolanguagepack_$i) 188cdf0e10cSrcweirooodevlanguagepack: $(foreach,i,$(alllangiso) ooodevlanguagepack_$i) 189cdf0e10cSrcweirsdkoo: $(foreach,i,$(alllangiso) sdkoo_$i) 190cdf0e10cSrcweirsdkoodev: $(foreach,i,$(alllangiso) sdkoodev_$i) 191f5a0c083SAndre Fischerpatch-create: $(foreach,i,$(alllangiso) patch-create_$i) 192cdf0e10cSrcweir 193cdf0e10cSrcweirMSIOFFICETEMPLATESOURCE=$(PRJ)$/inc_openoffice$/windows$/msi_templates 194cdf0e10cSrcweirMSILANGPACKTEMPLATESOURCE=$(PRJ)$/inc_ooolangpack$/windows$/msi_templates 195cdf0e10cSrcweirMSISDKOOTEMPLATESOURCE=$(PRJ)$/inc_sdkoo$/windows$/msi_templates 196cdf0e10cSrcweir 197cdf0e10cSrcweirNOLOGOSPLASH:=$(BIN)$/intro.zip 198cdf0e10cSrcweirDEVNOLOGOSPLASH:=$(BIN)$/dev$/intro.zip 199*a29d375cSAndre FischerBETA_LOGO_SPLASH:=$(BIN)$/beta$/intro.zip $(BIN)$/beta$/images.zip 200cdf0e10cSrcweirMSIOFFICETEMPLATEDIR=$(MISC)$/openoffice$/msi_templates 201cdf0e10cSrcweirMSILANGPACKTEMPLATEDIR=$(MISC)$/ooolangpack$/msi_templates 202cdf0e10cSrcweirMSISDKOOTEMPLATEDIR=$(MISC)$/sdkoo$/msi_templates 203cdf0e10cSrcweir 2049f91b7e3SAndre FischerADDDEPS=adddeps 2059f91b7e3SAndre Fischeradddeps .PHONY : $(NOLOGOSPLASH) $(DEVNOLOGOSPLASH) 206451f97f9SPedro Giffuni 207cdf0e10cSrcweir.IF "$(OS)" == "WNT" 2089f91b7e3SAndre Fischeradddeps : msitemplates 209cdf0e10cSrcweir.ENDIF 210cdf0e10cSrcweir 2119f91b7e3SAndre Fischer.IF "$(LOCALPYFILES)"!="" 2129f91b7e3SAndre Fischerlocal_python_files .PHONY : $(LOCALPYFILES) 2139f91b7e3SAndre Fischeradddeps : local_python_files 2149f91b7e3SAndre Fischerupdatepack : local_python_files 2159f91b7e3SAndre Fischer.ENDIF # "$(LOCALPYFILES)"!="" 2169f91b7e3SAndre Fischer 21738d57702SAndre Fischer# Add dependencies on 'adddeps' where necessary. 21838d57702SAndre Fischer$(foreach,i,$(alllangiso) openoffice_$i) : adddeps 21938d57702SAndre Fischeropenoffice_$(defaultlangiso).archive : adddeps 22038d57702SAndre Fischer$(foreach,i,$(alllangiso) openofficedev_$i) : adddeps 221*a29d375cSAndre Fischer$(foreach,i,$(alllangiso) beta_$i) : adddeps $(BETA_LOGO_SPLASH) 22238d57702SAndre Fischer$(foreach,i,$(alllangiso) openofficewithjre_$i) : adddeps 22338d57702SAndre Fischer$(foreach,i,$(alllangiso) ooolanguagepack_$i) : adddeps 22438d57702SAndre Fischer$(foreach,i,$(alllangiso) ooodevlanguagepack_$i) : adddeps 22538d57702SAndre Fischer$(foreach,i,$(alllangiso) sdkoo_$i) : adddeps 22638d57702SAndre Fischer$(foreach,i,$(alllangiso) sdkoodev_$i) : adddeps 22738d57702SAndre Fischer 22838d57702SAndre Fischer# Create targets that take the package formats into account. Together with language dependency we 22938d57702SAndre Fischer# get this transformation: target -> target_$language -> target_$language.$package 23038d57702SAndre Fischer# where $language ranges over all languages in $(alllangiso) 23138d57702SAndre Fischer# and $package ranges over all package formats in $(PKGFORMAT) 232cdf0e10cSrcweir$(foreach,i,$(alllangiso) openoffice_$i) : $$@{$(PKGFORMAT:^".")} 2339f91b7e3SAndre Fischer$(foreach,i,$(alllangiso) openofficewithjre_$i) : $$@{$(PKGFORMAT:^".")} 2349f91b7e3SAndre Fischer$(foreach,i,$(alllangiso) openofficedev_$i) : $$@{$(PKGFORMAT:^".")} 235*a29d375cSAndre Fischer$(foreach,i,$(alllangiso) beta_$i) : $$@{$(PKGFORMAT:^".")} 2369f91b7e3SAndre Fischer$(foreach,i,$(alllangiso) ooolanguagepack_$i) : $$@{$(PKGFORMAT:^".")} 2379f91b7e3SAndre Fischer$(foreach,i,$(alllangiso) ooodevlanguagepack_$i) : $$@{$(PKGFORMAT:^".")} 2389f91b7e3SAndre Fischer$(foreach,i,$(alllangiso) sdkoo_$i) : $$@{$(PKGFORMAT:^".")} 2399f91b7e3SAndre Fischer$(foreach,i,$(alllangiso) sdkoodev_$i) : $$@{$(PKGFORMAT:^".")} 240f5a0c083SAndre Fischer$(foreach,i,$(alllangiso) patch-create_$i) : $$@{$(PKGFORMAT:^".")} 241aa3f9146SAndre Fischer 242aa3f9146SAndre Fischer 243aa3f9146SAndre Fischer# This macro makes calling the make_installer.pl script a bit easier. 244aa3f9146SAndre Fischer# Just add -p and -msitemplate switches. 245aa3f9146SAndre FischerMAKE_INSTALLER_COMMAND= \ 2469f91b7e3SAndre Fischer @$(PERL) -w $(SOLARENV)$/bin$/make_installer.pl \ 247aa3f9146SAndre Fischer -f $(PRJ)$/util$/openoffice.lst \ 248aa3f9146SAndre Fischer -l $(subst,$(@:s/_/ /:1)_, $(@:b)) \ 249aa3f9146SAndre Fischer -u $(OUT) \ 250aa3f9146SAndre Fischer -buildid $(BUILD) \ 251aa3f9146SAndre Fischer -msilanguage $(MISC)$/win_ulffiles \ 252aa3f9146SAndre Fischer -format $(@:e:s/.//) \ 253aa3f9146SAndre Fischer $(VERBOSESWITCH) 254aa3f9146SAndre Fischer 255aa3f9146SAndre Fischer# This macro makes calling gen_update_info.pl a bit easier 256aa3f9146SAndre Fischer# Just add --product switches, and xml input file and redirect output. 257aa3f9146SAndre FischerGEN_UPDATE_INFO_COMMAND= \ 2589f91b7e3SAndre Fischer @$(PERL) -w $(SOLARENV)$/bin$/gen_update_info.pl \ 259aa3f9146SAndre Fischer --buildid $(BUILD) \ 260aa3f9146SAndre Fischer --arch "$(RTL_ARCH)" \ 261aa3f9146SAndre Fischer --os "$(RTL_OS)" \ 262aa3f9146SAndre Fischer --lstfile $(PRJ)$/util$/openoffice.lst \ 263aa3f9146SAndre Fischer --languages $(subst,$(@:s/_/ /:1)_, $(@:b)) 264aa3f9146SAndre Fischer 26538d57702SAndre Fischer#openoffice_%{$(PKGFORMAT:^".")} : 26638d57702SAndre Fischer$(foreach,P,$(PACKAGE_FORMATS) $(foreach,L,$(alllangiso) openoffice_$L.$P)) .PHONY : 2679f91b7e3SAndre Fischer $(MAKE_INSTALLER_COMMAND) \ 2689f91b7e3SAndre Fischer -p Apache_OpenOffice \ 2699f91b7e3SAndre Fischer -msitemplate $(MSIOFFICETEMPLATEDIR) \ 2709f91b7e3SAndre Fischer $(RELEASE_SWITCH) 271dc914883SAndre Fischer $(GEN_UPDATE_INFO_COMMAND) \ 272dc914883SAndre Fischer --product Apache_OpenOffice \ 273dc914883SAndre Fischer $(PRJ)$/util$/update.xml \ 274dc914883SAndre Fischer > $(MISC)/$(@:b)_$(RTL_OS)_$(RTL_ARCH)$(@:e).update.xml 275dc914883SAndre Fischer 27638d57702SAndre Fischer#openofficewithjre_%{$(PKGFORMAT:^".")} : 27738d57702SAndre Fischer$(foreach,P,$(PACKAGE_FORMATS) $(foreach,L,$(alllangiso) openofficewithjre_$L.$P)) .PHONY : 278aa3f9146SAndre Fischer $(MAKE_INSTALLER_COMMAND) -p Apache_OpenOffice_wJRE -msitemplate $(MSIOFFICETEMPLATEDIR) 279cdf0e10cSrcweir 28038d57702SAndre Fischer#openofficedev_%{$(PKGFORMAT:^".")} : 28138d57702SAndre Fischer$(foreach,P,$(PACKAGE_FORMATS) $(foreach,L,$(alllangiso) openofficedev_$L.$P)) .PHONY : 282aa3f9146SAndre Fischer $(MAKE_INSTALLER_COMMAND) \ 283aa3f9146SAndre Fischer -p Apache_OpenOffice_Dev \ 284aa3f9146SAndre Fischer -msitemplate $(MSIOFFICETEMPLATEDIR) 285aa3f9146SAndre Fischer $(GEN_UPDATE_INFO_COMMAND) \ 286aa3f9146SAndre Fischer --product Apache_OpenOffice_Dev \ 287aa3f9146SAndre Fischer $(PRJ)$/util$/update.xml \ 288aa3f9146SAndre Fischer > $(MISC)/$(@:b)_$(RTL_OS)_$(RTL_ARCH)$(@:e).update.xml 289cdf0e10cSrcweir 290*a29d375cSAndre Fischer$(foreach,P,$(PACKAGE_FORMATS) $(foreach,L,$(alllangiso) beta_$L.$P)) .PHONY : 291*a29d375cSAndre Fischer $(MAKE_INSTALLER_COMMAND) \ 292*a29d375cSAndre Fischer -p Apache_OpenOffice_Beta \ 293*a29d375cSAndre Fischer -msitemplate $(MSIOFFICETEMPLATEDIR) 294*a29d375cSAndre Fischer $(GEN_UPDATE_INFO_COMMAND) \ 295*a29d375cSAndre Fischer --product Apache_OpenOffice_Beta \ 296*a29d375cSAndre Fischer $(PRJ)$/util$/update.xml \ 297*a29d375cSAndre Fischer > $(MISC)/$(@:b)_$(RTL_OS)_$(RTL_ARCH)$(@:e).update.xml 298*a29d375cSAndre Fischer 29938d57702SAndre Fischer#ooolanguagepack_%{$(PKGFORMAT:^".")} : 30038d57702SAndre Fischer$(foreach,P,$(PACKAGE_FORMATS) $(foreach,L,$(alllangiso) ooolanguagepack_$L.$P)) .PHONY : 301aa3f9146SAndre Fischer $(MAKE_INSTALLER_COMMAND) \ 302aa3f9146SAndre Fischer -p Apache_OpenOffice \ 303aa3f9146SAndre Fischer -msitemplate $(MSILANGPACKTEMPLATEDIR) \ 304aa3f9146SAndre Fischer -languagepack 305cdf0e10cSrcweir 30638d57702SAndre Fischer#ooodevlanguagepack_%{$(PKGFORMAT:^".")} : 30738d57702SAndre Fischer$(foreach,P,$(PACKAGE_FORMATS) $(foreach,L,$(alllangiso) ooodevlanguagepack_$L.$P)) .PHONY : 308aa3f9146SAndre Fischer $(MAKE_INSTALLER_COMMAND) -p Apache_OpenOffice_Dev -msitemplate $(MSILANGPACKTEMPLATEDIR) -languagepack 309cdf0e10cSrcweir 31038d57702SAndre Fischer#sdkoo_%{$(PKGFORMAT:^".")} : 31138d57702SAndre Fischer$(foreach,P,$(PACKAGE_FORMATS) $(foreach,L,$(alllangiso) sdkoo_$L.$P)) .PHONY : 312aa3f9146SAndre Fischer $(MAKE_INSTALLER_COMMAND) -p Apache_OpenOffice_SDK -msitemplate $(MSISDKOOTEMPLATEDIR) -dontstrip 313cdf0e10cSrcweir 31438d57702SAndre Fischer#sdkoodev_%{$(PKGFORMAT:^".")} : 31538d57702SAndre Fischer$(foreach,P,$(PACKAGE_FORMATS) $(foreach,L,$(alllangiso) sdkoodev_$L.$P)) .PHONY : 316aa3f9146SAndre Fischer $(MAKE_INSTALLER_COMMAND) -p Apache_OpenOffice_Dev_SDK -msitemplate $(MSISDKOOTEMPLATEDIR) -dontstrip 317cdf0e10cSrcweir 318677600b0SAndre Fischer.ENDIF # "$(alllangiso)"=="" 319cdf0e10cSrcweir 320cdf0e10cSrcweir$(BIN)$/%.py : $(SOLARSHAREDBIN)$/pyuno$/%.py 3219f91b7e3SAndre Fischer $(COPY) $< $@ 322cdf0e10cSrcweir 323910823aeSJürgen Schmidt$(BIN)$/intro.zip : $(SOLARCOMMONPCKDIR)$/intro.zip 324cdf0e10cSrcweir $(COPY) $< $@ 325cdf0e10cSrcweir 326910823aeSJürgen Schmidt$(BIN)$/dev$/intro.zip : $(SOLARCOMMONPCKDIR)$/openoffice_dev$/intro.zip 327cdf0e10cSrcweir @-$(MKDIR) $(@:d) 328cdf0e10cSrcweir $(COPY) $< $@ 329cdf0e10cSrcweir 330*a29d375cSAndre Fischer$(BIN)$/beta$/intro.zip : $(SOLARCOMMONPCKDIR)$/openoffice_beta$/intro.zip 331*a29d375cSAndre Fischer @-$(MKDIR) $(@:d) 332*a29d375cSAndre Fischer $(COPY) $< $@ 333*a29d375cSAndre Fischer 334*a29d375cSAndre Fischer# Replace framework/res/*.png with *-beta.png 335*a29d375cSAndre Fischer$(BIN)$/beta$/images.zip : $(SOLARSHAREDBIN)$/images.zip 336*a29d375cSAndre Fischer $(COPY) $< $@ 337*a29d375cSAndre Fischer $(SOLARENV)$/bin/replace_in_zip.pl \ 338*a29d375cSAndre Fischer $@ \ 339*a29d375cSAndre Fischer framework/res/ \ 340*a29d375cSAndre Fischer $(SRC_ROOT)/default_images/framework/res/beta/ \ 341*a29d375cSAndre Fischer backing.png \ 342*a29d375cSAndre Fischer backing_hc.png \ 343*a29d375cSAndre Fischer backing_rtl_left.png \ 344*a29d375cSAndre Fischer backing_rtl_left_hc.png 3459f91b7e3SAndre Fischer 3469f91b7e3SAndre Fischer.IF "$(OS)" == "WNT" 347f5a0c083SAndre Fischer$(foreach,P,$(PACKAGE_FORMATS) $(foreach,L,$(alllangiso) patch-create_$L.$P)) .PHONY : 348f5a0c083SAndre Fischer @echo building $@ 349d575d58fSAndre Fischer perl -I $(SOLARENV)$/bin/modules $(SOLARENV)$/bin$/patch_tool.pl \ 350d575d58fSAndre Fischer create \ 3519f91b7e3SAndre Fischer --product-name Apache_OpenOffice \ 3529f91b7e3SAndre Fischer --output-path $(OUT) \ 3539f91b7e3SAndre Fischer --data-path $(PRJ)$/data \ 354f5a0c083SAndre Fischer --lst-file $(PRJ)$/util$/openoffice.lst \ 355f5a0c083SAndre Fischer --language $(subst,$(@:s/_/ /:1)_, $(@:b)) \ 356f5a0c083SAndre Fischer --package-format $(@:e:s/.//) 357f5a0c083SAndre Fischerpatch-apply .PHONY : 358d575d58fSAndre Fischer perl -I $(SOLARENV)$/bin/modules $(SOLARENV)$/bin$/patch_tool.pl \ 359d575d58fSAndre Fischer apply \ 360d575d58fSAndre Fischer --product-name Apache_OpenOffice \ 361d575d58fSAndre Fischer --output-path $(OUT) \ 362f5a0c083SAndre Fischer --lst-file $(PRJ)$/util$/openoffice.lst \ 363f5a0c083SAndre Fischer --language en-US \ 364f5a0c083SAndre Fischer --package-format msi 365f5a0c083SAndre Fischerpatch-update-releases-xml .PHONY: 366d575d58fSAndre Fischer perl -I $(SOLARENV)$/bin/modules $(SOLARENV)$/bin$/patch_tool.pl \ 367d575d58fSAndre Fischer update-releases-xml \ 368d575d58fSAndre Fischer --product-name Apache_OpenOffice \ 369d575d58fSAndre Fischer --output-path $(OUT) \ 370d575d58fSAndre Fischer --lst-file $(PRJ)$/util$/openoffice.lst\ 371d575d58fSAndre Fischer --target-version 4.0.1 372677600b0SAndre Fischer$(foreach,P,$(PACKAGE_FORMATS) $(foreach,L,$(alllangiso) patch-check_$L.$P)) .PHONY : 373677600b0SAndre Fischer @echo building $@ 374677600b0SAndre Fischer perl -I $(SOLARENV)$/bin/modules $(SOLARENV)$/bin$/patch_tool.pl \ 375677600b0SAndre Fischer check \ 376677600b0SAndre Fischer --product-name Apache_OpenOffice \ 377677600b0SAndre Fischer --output-path $(OUT) \ 378677600b0SAndre Fischer --data-path $(PRJ)$/data \ 379677600b0SAndre Fischer --lst-file $(PRJ)$/util$/openoffice.lst \ 380677600b0SAndre Fischer --language $(subst,$(@:s/_/ /:1)_, $(@:b)) \ 381677600b0SAndre Fischer --package-format $(@:e:s/.//) 3829f91b7e3SAndre Fischer 3839f91b7e3SAndre Fischer$(PRJ)$/data : 3849f91b7e3SAndre Fischer mkdir $@ 3859f91b7e3SAndre Fischer.ELSE 386f5a0c083SAndre Fischer$(foreach,P,$(PACKAGE_FORMATS) $(foreach,L,$(alllangiso) patch-create_$L.$P)) .PHONY : 387f5a0c083SAndre Fischer @echo "patches can only be created on Windows at the moment" 388f5a0c083SAndre Fischerpatch-apply .PHONY : 389f5a0c083SAndre Fischer @echo "patches can only be created on Windows at the moment" 390f5a0c083SAndre Fischerpatch-update-releases-xml .PHONY: 3919f91b7e3SAndre Fischer @echo "patches can only be created on Windows at the moment" 3929f91b7e3SAndre Fischer.ENDIF 3939f91b7e3SAndre Fischer 3949f91b7e3SAndre Fischer 395b6dfe6c8SAndre Fischermsitemplates .PHONY: msi_template_files msi_langpack_template_files msi_sdk_template_files 3967a3dfa40SAndre Fischer 3977a3dfa40SAndre FischerMSI_OFFICE_TEMPLATE_FILES= \ 3987a3dfa40SAndre Fischer ActionTe.idt \ 3997a3dfa40SAndre Fischer AdminExe.idt \ 4007a3dfa40SAndre Fischer AdminUIS.idt \ 4017a3dfa40SAndre Fischer AdvtExec.idt \ 4027a3dfa40SAndre Fischer AppSearc.idt \ 4037a3dfa40SAndre Fischer Binary.idt \ 4047a3dfa40SAndre Fischer CheckBox.idt \ 4057a3dfa40SAndre Fischer Control.idt \ 4067a3dfa40SAndre Fischer ControlC.idt \ 4077a3dfa40SAndre Fischer ControlE.idt \ 4087a3dfa40SAndre Fischer CustomAc.idt \ 4097a3dfa40SAndre Fischer Dialog.idt \ 4107a3dfa40SAndre Fischer Error.idt \ 4117a3dfa40SAndre Fischer EventMap.idt \ 4127a3dfa40SAndre Fischer InstallE.idt \ 4137a3dfa40SAndre Fischer InstallU.idt \ 4147a3dfa40SAndre Fischer LaunchCo.idt \ 4157a3dfa40SAndre Fischer ListBox.idt \ 4167a3dfa40SAndre Fischer Property.idt \ 4177a3dfa40SAndre Fischer RadioBut.idt \ 4187a3dfa40SAndre Fischer RegLocat.idt \ 4197a3dfa40SAndre Fischer Signatur.idt \ 4207a3dfa40SAndre Fischer TextStyl.idt \ 4217a3dfa40SAndre Fischer UIText.idt \ 4227a3dfa40SAndre Fischer _Validat.idt \ 4237a3dfa40SAndre Fischer codes.txt \ 4247a3dfa40SAndre Fischer codes_broo.txt \ 4257a3dfa40SAndre Fischer codes_broodev.txt \ 4267a3dfa40SAndre Fischer codes_ooodev.txt \ 4277a3dfa40SAndre Fischer components.txt \ 4287a3dfa40SAndre Fischer upgradecode_remove_ooo.txt \ 4297a3dfa40SAndre Fischer Binary/Banner.bmp \ 4307a3dfa40SAndre Fischer Binary/Image.bmp \ 4317a3dfa40SAndre Fischer Binary/caution.ico \ 4327a3dfa40SAndre Fischer Binary/dontinstall.ico \ 4337a3dfa40SAndre Fischer Binary/install.ico \ 4347a3dfa40SAndre Fischer Binary/installfirstuse.ico \ 4357a3dfa40SAndre Fischer Binary/installpartial.ico \ 4367a3dfa40SAndre Fischer Binary/installstatemenu.ico \ 4377a3dfa40SAndre Fischer Binary/networkinstall.ico \ 4387a3dfa40SAndre Fischer Binary/newfolder.ico \ 4397a3dfa40SAndre Fischer Binary/openfolder.ico \ 4407a3dfa40SAndre Fischer Binary/setup.ico \ 4417a3dfa40SAndre Fischer Binary/setupcomplete.ico \ 4427a3dfa40SAndre Fischer Binary/setuppartial.ico \ 4437a3dfa40SAndre Fischer Binary/setuprepair.ico \ 4447a3dfa40SAndre Fischer Binary/trashcan.ico \ 4457a3dfa40SAndre Fischer Binary/up.ico 4467a3dfa40SAndre Fischer 4477a3dfa40SAndre FischerMSI_LANGPACK_TEMPLATE_FILES= \ 4487a3dfa40SAndre Fischer ActionTe.idt \ 4497a3dfa40SAndre Fischer AdminExe.idt \ 4507a3dfa40SAndre Fischer AdminUIS.idt \ 4517a3dfa40SAndre Fischer AdvtExec.idt \ 4527a3dfa40SAndre Fischer Binary.idt \ 4537a3dfa40SAndre Fischer CheckBox.idt \ 4547a3dfa40SAndre Fischer Control.idt \ 4557a3dfa40SAndre Fischer ControlC.idt \ 4567a3dfa40SAndre Fischer ControlE.idt \ 4577a3dfa40SAndre Fischer CustomAc.idt \ 4587a3dfa40SAndre Fischer Dialog.idt \ 4597a3dfa40SAndre Fischer Error.idt \ 4607a3dfa40SAndre Fischer EventMap.idt \ 4617a3dfa40SAndre Fischer InstallE.idt \ 4627a3dfa40SAndre Fischer InstallU.idt \ 4637a3dfa40SAndre Fischer LaunchCo.idt \ 4647a3dfa40SAndre Fischer ListBox.idt \ 4657a3dfa40SAndre Fischer Property.idt \ 4667a3dfa40SAndre Fischer RadioBut.idt \ 4677a3dfa40SAndre Fischer TextStyl.idt \ 4687a3dfa40SAndre Fischer UIText.idt \ 4697a3dfa40SAndre Fischer _Validat.idt \ 4707a3dfa40SAndre Fischer bro_patchcodes.txt \ 4717a3dfa40SAndre Fischer brodev_patchcodes.txt \ 4727a3dfa40SAndre Fischer codes.txt \ 4737a3dfa40SAndre Fischer codes_broo.txt \ 4747a3dfa40SAndre Fischer codes_ooodev.txt \ 4757a3dfa40SAndre Fischer components.txt \ 4767a3dfa40SAndre Fischer ooo_patchcodes.txt \ 4777a3dfa40SAndre Fischer ooodev_patchcodes.txt \ 47804be0b07SAndre Fischer Binary/Banner.bmp \ 47904be0b07SAndre Fischer Binary/Image.bmp \ 48004be0b07SAndre Fischer Binary/caution.ico \ 48104be0b07SAndre Fischer Binary/dontinstall.ico \ 48204be0b07SAndre Fischer Binary/install.ico \ 48304be0b07SAndre Fischer Binary/installfirstuse.ico \ 48404be0b07SAndre Fischer Binary/installpartial.ico \ 48504be0b07SAndre Fischer Binary/installstatemenu.ico \ 48604be0b07SAndre Fischer Binary/networkinstall.ico \ 48704be0b07SAndre Fischer Binary/newfolder.ico \ 48804be0b07SAndre Fischer Binary/openfolder.ico \ 48904be0b07SAndre Fischer Binary/setup.ico \ 49004be0b07SAndre Fischer Binary/setupcomplete.ico \ 49104be0b07SAndre Fischer Binary/setuppartial.ico \ 49204be0b07SAndre Fischer Binary/setuprepair.ico \ 49304be0b07SAndre Fischer Binary/trashcan.ico \ 49404be0b07SAndre Fischer Binary/up.ico 4957a3dfa40SAndre Fischer 4967a3dfa40SAndre FischerMSI_SDK_TEMPLATE_FILES= \ 4977a3dfa40SAndre Fischer ActionTe.idt \ 4987a3dfa40SAndre Fischer AdminExe.idt \ 4997a3dfa40SAndre Fischer AdminUIS.idt \ 5007a3dfa40SAndre Fischer AdvtExec.idt \ 5017a3dfa40SAndre Fischer AppSearc.idt \ 5027a3dfa40SAndre Fischer Binary.idt \ 5037a3dfa40SAndre Fischer CheckBox.idt \ 5047a3dfa40SAndre Fischer Control.idt \ 5057a3dfa40SAndre Fischer ControlC.idt \ 5067a3dfa40SAndre Fischer ControlE.idt \ 5077a3dfa40SAndre Fischer CustomAc.idt \ 5087a3dfa40SAndre Fischer Dialog.idt \ 5097a3dfa40SAndre Fischer Error.idt \ 5107a3dfa40SAndre Fischer EventMap.idt \ 5117a3dfa40SAndre Fischer InstallE.idt \ 5127a3dfa40SAndre Fischer InstallU.idt \ 5137a3dfa40SAndre Fischer LaunchCo.idt \ 5147a3dfa40SAndre Fischer ListBox.idt \ 5157a3dfa40SAndre Fischer Property.idt \ 5167a3dfa40SAndre Fischer RadioBut.idt \ 5177a3dfa40SAndre Fischer RegLocat.idt \ 5187a3dfa40SAndre Fischer Signatur.idt \ 5197a3dfa40SAndre Fischer TextStyl.idt \ 5207a3dfa40SAndre Fischer UIText.idt \ 5217a3dfa40SAndre Fischer _Validat.idt \ 5227a3dfa40SAndre Fischer codes.txt \ 5237a3dfa40SAndre Fischer components.txt \ 5247a3dfa40SAndre Fischer Binary/Banner.bmp \ 5257a3dfa40SAndre Fischer Binary/Image.bmp \ 5267a3dfa40SAndre Fischer Binary/caution.ico \ 5277a3dfa40SAndre Fischer Binary/dontinstall.ico \ 5287a3dfa40SAndre Fischer Binary/install.ico \ 5297a3dfa40SAndre Fischer Binary/installfirstuse.ico \ 5307a3dfa40SAndre Fischer Binary/installpartial.ico \ 5317a3dfa40SAndre Fischer Binary/installstatemenu.ico \ 5327a3dfa40SAndre Fischer Binary/networkinstall.ico \ 5337a3dfa40SAndre Fischer Binary/newfolder.ico \ 5347a3dfa40SAndre Fischer Binary/openfolder.ico \ 5357a3dfa40SAndre Fischer Binary/setup.ico \ 5367a3dfa40SAndre Fischer Binary/setupcomplete.ico \ 5377a3dfa40SAndre Fischer Binary/setuppartial.ico \ 5387a3dfa40SAndre Fischer Binary/setuprepair.ico \ 5397a3dfa40SAndre Fischer Binary/trashcan.ico \ 5407a3dfa40SAndre Fischer Binary/up.ico 5417a3dfa40SAndre Fischer 5427a3dfa40SAndre Fischermsi_template_files .PHONY: \ 5437a3dfa40SAndre Fischer $(MSIOFFICETEMPLATEDIR) \ 5447a3dfa40SAndre Fischer $(MSIOFFICETEMPLATEDIR)$/Binary \ 5457a3dfa40SAndre Fischer $(MSIOFFICETEMPLATEDIR)$/{$(MSI_OFFICE_TEMPLATE_FILES)} 5467a3dfa40SAndre Fischer$(MSIOFFICETEMPLATEDIR) $(MSIOFFICETEMPLATEDIR)$/Binary : 5477a3dfa40SAndre Fischer -$(MKDIRHIER) $@ 5487a3dfa40SAndre Fischer$(MSIOFFICETEMPLATEDIR)$/% : $(MSIOFFICETEMPLATESOURCE)$/% 5497a3dfa40SAndre Fischer $(GNUCOPY) $< $@ 5507a3dfa40SAndre Fischer 5517a3dfa40SAndre Fischermsi_langpack_template_files .PHONY : \ 5527a3dfa40SAndre Fischer $(MSILANGPACKTEMPLATEDIR) \ 5537a3dfa40SAndre Fischer $(MSILANGPACKTEMPLATEDIR)$/Binary \ 5547a3dfa40SAndre Fischer $(MSILANGPACKTEMPLATEDIR)$/{$(MSI_LANGPACK_TEMPLATE_FILES)} 5557a3dfa40SAndre Fischer$(MSILANGPACKTEMPLATEDIR) $(MSILANGPACKTEMPLATEDIR)$/Binary : 5567a3dfa40SAndre Fischer -$(MKDIRHIER) $@ 5577a3dfa40SAndre Fischer$(MSILANGPACKTEMPLATEDIR)$/% : $(MSILANGPACKTEMPLATESOURCE)$/% 5587a3dfa40SAndre Fischer $(GNUCOPY) $< $@ 5597a3dfa40SAndre Fischer 5607a3dfa40SAndre Fischer 5617a3dfa40SAndre Fischermsi_sdk_template_files .PHONY : \ 5627a3dfa40SAndre Fischer $(MSISDKOOTEMPLATEDIR) \ 5637a3dfa40SAndre Fischer $(MSISDKOOTEMPLATEDIR)$/Binary \ 5647a3dfa40SAndre Fischer $(MSISDKOOTEMPLATEDIR)$/{$(MSI_SDK_TEMPLATE_FILES)} 5657a3dfa40SAndre Fischer$(MSISDKOOTEMPLATEDIR) $(MSISDKOOTEMPLATEDIR)$/Binary : 5667a3dfa40SAndre Fischer -$(MKDIRHIER) $@ 5677a3dfa40SAndre Fischer$(MSISDKOOTEMPLATEDIR)/% : $(MSISDKOOTEMPLATESOURCE)$/% 5687a3dfa40SAndre Fischer $(GNUCOPY) $< $@ 5699f91b7e3SAndre Fischer 5709f91b7e3SAndre Fischer 5719f91b7e3SAndre Fischer# Local Variables: 5729f91b7e3SAndre Fischer# tab-width: 8 5739f91b7e3SAndre Fischer# End: 574