makefile.mk (d575d58f) | makefile.mk (f5a0c083) |
---|---|
1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance --- 45 unchanged lines hidden (view full) --- 54.INCLUDE .IGNORE: $(SRC_ROOT)$/cwsname.mk 55 56SHARED_COM_SDK_PATH*:=. 57 58INSTALLDIR=$(OUT) 59 60.INCLUDE: target.mk 61 | 1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance --- 45 unchanged lines hidden (view full) --- 54.INCLUDE .IGNORE: $(SRC_ROOT)$/cwsname.mk 55 56SHARED_COM_SDK_PATH*:=. 57 58INSTALLDIR=$(OUT) 59 60.INCLUDE: target.mk 61 |
62.IF "$(FORCE2ARCHIVE)" == "TRUE" 63PKGFORMAT = archive 64.END 65.IF "$(MAKETARGETS:e)"!="" 66PKGFORMAT+=$(MAKETARGETS:e:s/.//) 67.ENDIF 68# PKGFORMAT may contain the standard package format twice at this time. 69# Provide its content with duplicates removed. 70PACKAGE_FORMATS=$(uniq $(PKGFORMAT)) 71 72 |
|
62# The help target belongs after the inclusion of target.mk to not become the default target. 63help .PHONY : 64 @echo "known targets:" 65 @echo " openoffice builds the default installation packages for the platform" 66 @echo " aoo_srcrelease packs the source release package" 67 @echo " updatepack" 68 @echo " openofficedev devloper snapshot" 69 @echo " openofficewithjre" 70 @echo " ooolanguagepack" 71 @echo " ooodevlanguagepack" 72 @echo " sdkoo" 73 @echo " sdkoodev" 74 @echo 75 @echo "experimental targets:" | 73# The help target belongs after the inclusion of target.mk to not become the default target. 74help .PHONY : 75 @echo "known targets:" 76 @echo " openoffice builds the default installation packages for the platform" 77 @echo " aoo_srcrelease packs the source release package" 78 @echo " updatepack" 79 @echo " openofficedev devloper snapshot" 80 @echo " openofficewithjre" 81 @echo " ooolanguagepack" 82 @echo " ooodevlanguagepack" 83 @echo " sdkoo" 84 @echo " sdkoodev" 85 @echo 86 @echo "experimental targets:" |
76 @echo " patch_create create a patch for updating an installed office (Windows only)" 77 @echo " patch_apply apply a previously created patch" 78 @echo " patch_update_releases_xml" | 87 @echo " patch-create create a patch for updating an installed office (Windows only)" 88 @echo " patch-apply apply a previously created patch" 89 @echo " patch-update-releases-xml" |
79 @echo 80 @echo "Most targets (all except aoo_srcrelease and updatepack) accept suffixes" 81 @echo " add _<language> to build a target for one language only" 82 @echo " the default set of languages is alllangiso=$(alllangiso)" 83 @echo " add .<package_format> to build a target for one package format only" 84 @echo " the default set of package formats is archive and PKGFORMAT=$(PKGFORMAT)" 85 86 --- 18 unchanged lines hidden (view full) --- 105.ELSE 106ALLTAR : openoffice sdkoo_en-US 107.ENDIF 108.ELSE # "$(UPDATER)"=="" || "$(USE_PACKAGER)"=="" 109ALLTAR : updatepack 110.ENDIF # "$(UPDATER)"=="" || "$(USE_PACKAGER)"=="" 111.ENDIF # "$(GUI)"!="WNT" && "$(EPM)"=="NO" && "$(USE_PACKAGER)"=="" 112 | 90 @echo 91 @echo "Most targets (all except aoo_srcrelease and updatepack) accept suffixes" 92 @echo " add _<language> to build a target for one language only" 93 @echo " the default set of languages is alllangiso=$(alllangiso)" 94 @echo " add .<package_format> to build a target for one package format only" 95 @echo " the default set of package formats is archive and PKGFORMAT=$(PKGFORMAT)" 96 97 --- 18 unchanged lines hidden (view full) --- 116.ELSE 117ALLTAR : openoffice sdkoo_en-US 118.ENDIF 119.ELSE # "$(UPDATER)"=="" || "$(USE_PACKAGER)"=="" 120ALLTAR : updatepack 121.ENDIF # "$(UPDATER)"=="" || "$(USE_PACKAGER)"=="" 122.ENDIF # "$(GUI)"!="WNT" && "$(EPM)"=="NO" && "$(USE_PACKAGER)"=="" 123 |
113.IF "$(FORCE2ARCHIVE)" == "TRUE" 114PKGFORMAT = archive 115.END | |
116 | 124 |
117.IF "$(MAKETARGETS:e)"!="" 118PKGFORMAT+=$(MAKETARGETS:e:s/.//) 119.ENDIF # "$(MAKETARGETS:e)"!="" 120 | |
121# Independent of PKGFORMAT, always build a default-language openoffice product 122# also in archive format, so that tests that require an OOo installation (like 123# smoketestoo_native) have one available: 124#openoffice_$(defaultlangiso) : $$@.archive 125 126.IF "$(VERBOSE)"=="TRUE" 127VERBOSESWITCH=-verbose 128.ELIF "$(VERBOSE)"=="FALSE" --- 38 unchanged lines hidden (view full) --- 167 168ooolanguagepack : $(foreach,i,$(alllangiso) ooolanguagepack_$i) 169 170ooodevlanguagepack: $(foreach,i,$(alllangiso) ooodevlanguagepack_$i) 171 172sdkoo: $(foreach,i,$(alllangiso) sdkoo_$i) 173 174sdkoodev: $(foreach,i,$(alllangiso) sdkoodev_$i) | 125# Independent of PKGFORMAT, always build a default-language openoffice product 126# also in archive format, so that tests that require an OOo installation (like 127# smoketestoo_native) have one available: 128#openoffice_$(defaultlangiso) : $$@.archive 129 130.IF "$(VERBOSE)"=="TRUE" 131VERBOSESWITCH=-verbose 132.ELIF "$(VERBOSE)"=="FALSE" --- 38 unchanged lines hidden (view full) --- 171 172ooolanguagepack : $(foreach,i,$(alllangiso) ooolanguagepack_$i) 173 174ooodevlanguagepack: $(foreach,i,$(alllangiso) ooodevlanguagepack_$i) 175 176sdkoo: $(foreach,i,$(alllangiso) sdkoo_$i) 177 178sdkoodev: $(foreach,i,$(alllangiso) sdkoodev_$i) |
179patch-create: $(foreach,i,$(alllangiso) patch-create_$i) |
|
175 176MSIOFFICETEMPLATESOURCE=$(PRJ)$/inc_openoffice$/windows$/msi_templates 177MSILANGPACKTEMPLATESOURCE=$(PRJ)$/inc_ooolangpack$/windows$/msi_templates 178MSISDKOOTEMPLATESOURCE=$(PRJ)$/inc_sdkoo$/windows$/msi_templates 179 180NOLOGOSPLASH:=$(BIN)$/intro.zip 181DEVNOLOGOSPLASH:=$(BIN)$/dev$/intro.zip 182MSIOFFICETEMPLATEDIR=$(MISC)$/openoffice$/msi_templates --- 31 unchanged lines hidden (view full) --- 214 215$(foreach,i,$(alllangiso) openoffice_$i) : $$@{$(PKGFORMAT:^".")} 216$(foreach,i,$(alllangiso) openofficewithjre_$i) : $$@{$(PKGFORMAT:^".")} 217$(foreach,i,$(alllangiso) openofficedev_$i) : $$@{$(PKGFORMAT:^".")} 218$(foreach,i,$(alllangiso) ooolanguagepack_$i) : $$@{$(PKGFORMAT:^".")} 219$(foreach,i,$(alllangiso) ooodevlanguagepack_$i) : $$@{$(PKGFORMAT:^".")} 220$(foreach,i,$(alllangiso) sdkoo_$i) : $$@{$(PKGFORMAT:^".")} 221$(foreach,i,$(alllangiso) sdkoodev_$i) : $$@{$(PKGFORMAT:^".")} | 180 181MSIOFFICETEMPLATESOURCE=$(PRJ)$/inc_openoffice$/windows$/msi_templates 182MSILANGPACKTEMPLATESOURCE=$(PRJ)$/inc_ooolangpack$/windows$/msi_templates 183MSISDKOOTEMPLATESOURCE=$(PRJ)$/inc_sdkoo$/windows$/msi_templates 184 185NOLOGOSPLASH:=$(BIN)$/intro.zip 186DEVNOLOGOSPLASH:=$(BIN)$/dev$/intro.zip 187MSIOFFICETEMPLATEDIR=$(MISC)$/openoffice$/msi_templates --- 31 unchanged lines hidden (view full) --- 219 220$(foreach,i,$(alllangiso) openoffice_$i) : $$@{$(PKGFORMAT:^".")} 221$(foreach,i,$(alllangiso) openofficewithjre_$i) : $$@{$(PKGFORMAT:^".")} 222$(foreach,i,$(alllangiso) openofficedev_$i) : $$@{$(PKGFORMAT:^".")} 223$(foreach,i,$(alllangiso) ooolanguagepack_$i) : $$@{$(PKGFORMAT:^".")} 224$(foreach,i,$(alllangiso) ooodevlanguagepack_$i) : $$@{$(PKGFORMAT:^".")} 225$(foreach,i,$(alllangiso) sdkoo_$i) : $$@{$(PKGFORMAT:^".")} 226$(foreach,i,$(alllangiso) sdkoodev_$i) : $$@{$(PKGFORMAT:^".")} |
227$(foreach,i,$(alllangiso) patch-create_$i) : $$@{$(PKGFORMAT:^".")} |
|
222 223 224# This macro makes calling the make_installer.pl script a bit easier. 225# Just add -p and -msitemplate switches. 226MAKE_INSTALLER_COMMAND= \ 227 @$(PERL) -w $(SOLARENV)$/bin$/make_installer.pl \ 228 -f $(PRJ)$/util$/openoffice.lst \ 229 -l $(subst,$(@:s/_/ /:1)_, $(@:b)) \ --- 72 unchanged lines hidden (view full) --- 302 $(COPY) $< $@ 303 304$(BIN)$/dev$/intro.zip : $(SOLARCOMMONPCKDIR)$/openoffice_dev$/intro.zip 305 @-$(MKDIR) $(@:d) 306 $(COPY) $< $@ 307 308 309.IF "$(OS)" == "WNT" | 228 229 230# This macro makes calling the make_installer.pl script a bit easier. 231# Just add -p and -msitemplate switches. 232MAKE_INSTALLER_COMMAND= \ 233 @$(PERL) -w $(SOLARENV)$/bin$/make_installer.pl \ 234 -f $(PRJ)$/util$/openoffice.lst \ 235 -l $(subst,$(@:s/_/ /:1)_, $(@:b)) \ --- 72 unchanged lines hidden (view full) --- 308 $(COPY) $< $@ 309 310$(BIN)$/dev$/intro.zip : $(SOLARCOMMONPCKDIR)$/openoffice_dev$/intro.zip 311 @-$(MKDIR) $(@:d) 312 $(COPY) $< $@ 313 314 315.IF "$(OS)" == "WNT" |
310patch_create .PHONY : $(PRJ)$/data | 316$(foreach,P,$(PACKAGE_FORMATS) $(foreach,L,$(alllangiso) patch-create_$L.$P)) .PHONY : 317 @echo building $@ |
311 perl -I $(SOLARENV)$/bin/modules $(SOLARENV)$/bin$/patch_tool.pl \ 312 create \ 313 --product-name Apache_OpenOffice \ 314 --output-path $(OUT) \ 315 --data-path $(PRJ)$/data \ | 318 perl -I $(SOLARENV)$/bin/modules $(SOLARENV)$/bin$/patch_tool.pl \ 319 create \ 320 --product-name Apache_OpenOffice \ 321 --output-path $(OUT) \ 322 --data-path $(PRJ)$/data \ |
316 --lst-file $(PRJ)$/util$/openoffice.lst 317patch_apply .PHONY : | 323 --lst-file $(PRJ)$/util$/openoffice.lst \ 324 --language $(subst,$(@:s/_/ /:1)_, $(@:b)) \ 325 --package-format $(@:e:s/.//) 326patch-apply .PHONY : |
318 perl -I $(SOLARENV)$/bin/modules $(SOLARENV)$/bin$/patch_tool.pl \ 319 apply \ 320 --product-name Apache_OpenOffice \ 321 --output-path $(OUT) \ | 327 perl -I $(SOLARENV)$/bin/modules $(SOLARENV)$/bin$/patch_tool.pl \ 328 apply \ 329 --product-name Apache_OpenOffice \ 330 --output-path $(OUT) \ |
322 --lst-file $(PRJ)$/util$/openoffice.lst 323patch_update_releases_xml .PHONY: | 331 --lst-file $(PRJ)$/util$/openoffice.lst \ 332 --language en-US \ 333 --package-format msi 334patch-update-releases-xml .PHONY: |
324 perl -I $(SOLARENV)$/bin/modules $(SOLARENV)$/bin$/patch_tool.pl \ 325 update-releases-xml \ 326 --product-name Apache_OpenOffice \ 327 --output-path $(OUT) \ 328 --lst-file $(PRJ)$/util$/openoffice.lst\ 329 --target-version 4.0.1 330 331$(PRJ)$/data : 332 mkdir $@ 333.ELSE | 335 perl -I $(SOLARENV)$/bin/modules $(SOLARENV)$/bin$/patch_tool.pl \ 336 update-releases-xml \ 337 --product-name Apache_OpenOffice \ 338 --output-path $(OUT) \ 339 --lst-file $(PRJ)$/util$/openoffice.lst\ 340 --target-version 4.0.1 341 342$(PRJ)$/data : 343 mkdir $@ 344.ELSE |
334patch .PHONY : | 345$(foreach,P,$(PACKAGE_FORMATS) $(foreach,L,$(alllangiso) patch-create_$L.$P)) .PHONY : |
335 @echo "patches can only be created on Windows at the moment" | 346 @echo "patches can only be created on Windows at the moment" |
347patch-apply .PHONY : 348 @echo "patches can only be created on Windows at the moment" 349patch-update-releases-xml .PHONY: 350 @echo "patches can only be created on Windows at the moment" |
|
336.ENDIF 337 338 339msitemplates .PHONY: msi_template_files msi_langpack_template_files msi_sdk_template_files 340 341MSI_OFFICE_TEMPLATE_FILES= \ 342 ActionTe.idt \ 343 AdminExe.idt \ --- 158 unchanged lines hidden --- | 351.ENDIF 352 353 354msitemplates .PHONY: msi_template_files msi_langpack_template_files msi_sdk_template_files 355 356MSI_OFFICE_TEMPLATE_FILES= \ 357 ActionTe.idt \ 358 AdminExe.idt \ --- 158 unchanged lines hidden --- |