makefile.mk (f5a0c083) makefile.mk (38d57702)
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

--- 111 unchanged lines hidden (view full) ---

120ALLTAR : updatepack
121.ENDIF # "$(UPDATER)"=="" || "$(USE_PACKAGER)"==""
122.ENDIF # "$(GUI)"!="WNT" && "$(EPM)"=="NO" && "$(USE_PACKAGER)"==""
123
124
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:
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

--- 111 unchanged lines hidden (view full) ---

120ALLTAR : updatepack
121.ENDIF # "$(UPDATER)"=="" || "$(USE_PACKAGER)"==""
122.ENDIF # "$(GUI)"!="WNT" && "$(EPM)"=="NO" && "$(USE_PACKAGER)"==""
123
124
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
128openoffice_$(defaultlangiso) : $$@.archive
129
130.IF "$(VERBOSE)"=="TRUE"
131VERBOSESWITCH=-verbose
132.ELIF "$(VERBOSE)"=="FALSE"
133VERBOSESWITCH=-quiet
134.ENDIF
135
136.IF "$(release:U)"=="T"

--- 19 unchanged lines hidden (view full) ---

156
157aoo_srcrelease: $(SOLARENV)$/bin$/srcrelease.xml
158 @-$(MKDIR) $(OUT)$/AOO_SRC_Release
159 $(ANT) -f $(SOLARENV)$/bin$/srcrelease.xml -q -Dbasedir=$(SOURCE_ROOT_DIR) -Dout.dir=$(SRC_RELEASE_OUT_DIR)
160
161updatepack:
162 $(PERL) -w $(SOLARENV)$/bin$/packager.pl
163
129
130.IF "$(VERBOSE)"=="TRUE"
131VERBOSESWITCH=-verbose
132.ELIF "$(VERBOSE)"=="FALSE"
133VERBOSESWITCH=-quiet
134.ENDIF
135
136.IF "$(release:U)"=="T"

--- 19 unchanged lines hidden (view full) ---

156
157aoo_srcrelease: $(SOLARENV)$/bin$/srcrelease.xml
158 @-$(MKDIR) $(OUT)$/AOO_SRC_Release
159 $(ANT) -f $(SOLARENV)$/bin$/srcrelease.xml -q -Dbasedir=$(SOURCE_ROOT_DIR) -Dout.dir=$(SRC_RELEASE_OUT_DIR)
160
161updatepack:
162 $(PERL) -w $(SOLARENV)$/bin$/packager.pl
163
164
165# The naming schema of targets is this: target_language.package
166# where 'target' is the target base name (as openoffice or sdkoo)
167# 'language' is the language name (like en-US or fr)
168# 'package' is the package format (like msi or deb)
169
164.IF "$(alllangiso)"!=""
165
170.IF "$(alllangiso)"!=""
171
172# Add dependencies of basic targets on language specific targets.
166openoffice: $(foreach,i,$(alllangiso) openoffice_$i)
173openoffice: $(foreach,i,$(alllangiso) openoffice_$i)
167
168openofficedev: $(foreach,i,$(alllangiso) openofficedev_$i)
174openofficedev: $(foreach,i,$(alllangiso) openofficedev_$i)
169
170openofficewithjre: $(foreach,i,$(alllangiso) openofficewithjre_$i)
175openofficewithjre: $(foreach,i,$(alllangiso) openofficewithjre_$i)
171
172ooolanguagepack : $(foreach,i,$(alllangiso) ooolanguagepack_$i)
176ooolanguagepack : $(foreach,i,$(alllangiso) ooolanguagepack_$i)
173
174ooodevlanguagepack: $(foreach,i,$(alllangiso) ooodevlanguagepack_$i)
177ooodevlanguagepack: $(foreach,i,$(alllangiso) ooodevlanguagepack_$i)
175
176sdkoo: $(foreach,i,$(alllangiso) sdkoo_$i)
178sdkoo: $(foreach,i,$(alllangiso) sdkoo_$i)
177
178sdkoodev: $(foreach,i,$(alllangiso) sdkoodev_$i)
179patch-create: $(foreach,i,$(alllangiso) patch-create_$i)
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

--- 10 unchanged lines hidden (view full) ---

196.ENDIF
197
198.IF "$(LOCALPYFILES)"!=""
199local_python_files .PHONY : $(LOCALPYFILES)
200adddeps : local_python_files
201updatepack : local_python_files
202.ENDIF # "$(LOCALPYFILES)"!=""
203
179sdkoodev: $(foreach,i,$(alllangiso) sdkoodev_$i)
180patch-create: $(foreach,i,$(alllangiso) patch-create_$i)
181
182MSIOFFICETEMPLATESOURCE=$(PRJ)$/inc_openoffice$/windows$/msi_templates
183MSILANGPACKTEMPLATESOURCE=$(PRJ)$/inc_ooolangpack$/windows$/msi_templates
184MSISDKOOTEMPLATESOURCE=$(PRJ)$/inc_sdkoo$/windows$/msi_templates
185
186NOLOGOSPLASH:=$(BIN)$/intro.zip

--- 10 unchanged lines hidden (view full) ---

197.ENDIF
198
199.IF "$(LOCALPYFILES)"!=""
200local_python_files .PHONY : $(LOCALPYFILES)
201adddeps : local_python_files
202updatepack : local_python_files
203.ENDIF # "$(LOCALPYFILES)"!=""
204
205# Add dependencies on 'adddeps' where necessary.
206$(foreach,i,$(alllangiso) openoffice_$i) : adddeps
207openoffice_$(defaultlangiso).archive : adddeps
208$(foreach,i,$(alllangiso) openofficedev_$i) : adddeps
209$(foreach,i,$(alllangiso) openofficewithjre_$i) : adddeps
210$(foreach,i,$(alllangiso) ooolanguagepack_$i) : adddeps
211$(foreach,i,$(alllangiso) ooodevlanguagepack_$i) : adddeps
212$(foreach,i,$(alllangiso) sdkoo_$i) : adddeps
213$(foreach,i,$(alllangiso) sdkoodev_$i) : adddeps
204
214
205$(foreach,i,$(alllangiso) openoffice_$i) : $(ADDDEPS)
206openoffice_$(defaultlangiso).archive : $(ADDDEPS)
207
208$(foreach,i,$(alllangiso) openofficedev_$i) : $(ADDDEPS)
209
210$(foreach,i,$(alllangiso) openofficewithjre_$i) : $(ADDDEPS)
211
212$(foreach,i,$(alllangiso) ooolanguagepack_$i) : $(ADDDEPS)
213
214$(foreach,i,$(alllangiso) ooodevlanguagepack_$i) : $(ADDDEPS)
215
216$(foreach,i,$(alllangiso) sdkoo_$i) : $(ADDDEPS)
217
218$(foreach,i,$(alllangiso) sdkoodev_$i) : $(ADDDEPS)
219
215# Create targets that take the package formats into account. Together with language dependency we
216# get this transformation: target -> target_$language -> target_$language.$package
217# where $language ranges over all languages in $(alllangiso)
218# and $package ranges over all package formats in $(PKGFORMAT)
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:^".")}

--- 16 unchanged lines hidden (view full) ---

244GEN_UPDATE_INFO_COMMAND= \
245 @$(PERL) -w $(SOLARENV)$/bin$/gen_update_info.pl \
246 --buildid $(BUILD) \
247 --arch "$(RTL_ARCH)" \
248 --os "$(RTL_OS)" \
249 --lstfile $(PRJ)$/util$/openoffice.lst \
250 --languages $(subst,$(@:s/_/ /:1)_, $(@:b))
251
219$(foreach,i,$(alllangiso) openoffice_$i) : $$@{$(PKGFORMAT:^".")}
220$(foreach,i,$(alllangiso) openofficewithjre_$i) : $$@{$(PKGFORMAT:^".")}
221$(foreach,i,$(alllangiso) openofficedev_$i) : $$@{$(PKGFORMAT:^".")}
222$(foreach,i,$(alllangiso) ooolanguagepack_$i) : $$@{$(PKGFORMAT:^".")}
223$(foreach,i,$(alllangiso) ooodevlanguagepack_$i) : $$@{$(PKGFORMAT:^".")}
224$(foreach,i,$(alllangiso) sdkoo_$i) : $$@{$(PKGFORMAT:^".")}
225$(foreach,i,$(alllangiso) sdkoodev_$i) : $$@{$(PKGFORMAT:^".")}
226$(foreach,i,$(alllangiso) patch-create_$i) : $$@{$(PKGFORMAT:^".")}

--- 16 unchanged lines hidden (view full) ---

243GEN_UPDATE_INFO_COMMAND= \
244 @$(PERL) -w $(SOLARENV)$/bin$/gen_update_info.pl \
245 --buildid $(BUILD) \
246 --arch "$(RTL_ARCH)" \
247 --os "$(RTL_OS)" \
248 --lstfile $(PRJ)$/util$/openoffice.lst \
249 --languages $(subst,$(@:s/_/ /:1)_, $(@:b))
250
252openoffice_%{$(PKGFORMAT:^".")} :
251#openoffice_%{$(PKGFORMAT:^".")} :
252$(foreach,P,$(PACKAGE_FORMATS) $(foreach,L,$(alllangiso) openoffice_$L.$P)) .PHONY :
253 $(MAKE_INSTALLER_COMMAND) \
254 -p Apache_OpenOffice \
255 -msitemplate $(MSIOFFICETEMPLATEDIR) \
256 $(RELEASE_SWITCH)
257 $(GEN_UPDATE_INFO_COMMAND) \
258 --product Apache_OpenOffice \
259 $(PRJ)$/util$/update.xml \
260 > $(MISC)/$(@:b)_$(RTL_OS)_$(RTL_ARCH)$(@:e).update.xml
261
253 $(MAKE_INSTALLER_COMMAND) \
254 -p Apache_OpenOffice \
255 -msitemplate $(MSIOFFICETEMPLATEDIR) \
256 $(RELEASE_SWITCH)
257 $(GEN_UPDATE_INFO_COMMAND) \
258 --product Apache_OpenOffice \
259 $(PRJ)$/util$/update.xml \
260 > $(MISC)/$(@:b)_$(RTL_OS)_$(RTL_ARCH)$(@:e).update.xml
261
262openoffice_%{.archive} :
262$(foreach,L,$(alllangiso) openoffice_$L.archive) :
263 $(MAKE_INSTALLER_COMMAND) \
264 -p Apache_OpenOffice \
265 -msitemplate $(MSIOFFICETEMPLATEDIR)
266 $(GEN_UPDATE_INFO_COMMAND) \
267 --product Apache_OpenOffice \
268 $(PRJ)$/util$/update.xml \
269 > $(MISC)/$(@:b)_$(RTL_OS)_$(RTL_ARCH)$(@:e).update.xml
270
263 $(MAKE_INSTALLER_COMMAND) \
264 -p Apache_OpenOffice \
265 -msitemplate $(MSIOFFICETEMPLATEDIR)
266 $(GEN_UPDATE_INFO_COMMAND) \
267 --product Apache_OpenOffice \
268 $(PRJ)$/util$/update.xml \
269 > $(MISC)/$(@:b)_$(RTL_OS)_$(RTL_ARCH)$(@:e).update.xml
270
271openofficewithjre_%{$(PKGFORMAT:^".")} :
271#openofficewithjre_%{$(PKGFORMAT:^".")} :
272$(foreach,P,$(PACKAGE_FORMATS) $(foreach,L,$(alllangiso) openofficewithjre_$L.$P)) .PHONY :
272 $(MAKE_INSTALLER_COMMAND) -p Apache_OpenOffice_wJRE -msitemplate $(MSIOFFICETEMPLATEDIR)
273
273 $(MAKE_INSTALLER_COMMAND) -p Apache_OpenOffice_wJRE -msitemplate $(MSIOFFICETEMPLATEDIR)
274
274openofficedev_%{$(PKGFORMAT:^".")} :
275#openofficedev_%{$(PKGFORMAT:^".")} :
276$(foreach,P,$(PACKAGE_FORMATS) $(foreach,L,$(alllangiso) openofficedev_$L.$P)) .PHONY :
275 $(MAKE_INSTALLER_COMMAND) \
276 -p Apache_OpenOffice_Dev \
277 -msitemplate $(MSIOFFICETEMPLATEDIR)
278 $(GEN_UPDATE_INFO_COMMAND) \
279 --product Apache_OpenOffice_Dev \
280 $(PRJ)$/util$/update.xml \
281 > $(MISC)/$(@:b)_$(RTL_OS)_$(RTL_ARCH)$(@:e).update.xml
282
277 $(MAKE_INSTALLER_COMMAND) \
278 -p Apache_OpenOffice_Dev \
279 -msitemplate $(MSIOFFICETEMPLATEDIR)
280 $(GEN_UPDATE_INFO_COMMAND) \
281 --product Apache_OpenOffice_Dev \
282 $(PRJ)$/util$/update.xml \
283 > $(MISC)/$(@:b)_$(RTL_OS)_$(RTL_ARCH)$(@:e).update.xml
284
283ooolanguagepack_%{$(PKGFORMAT:^".")} :
285#ooolanguagepack_%{$(PKGFORMAT:^".")} :
286$(foreach,P,$(PACKAGE_FORMATS) $(foreach,L,$(alllangiso) ooolanguagepack_$L.$P)) .PHONY :
284 $(MAKE_INSTALLER_COMMAND) \
285 -p Apache_OpenOffice \
286 -msitemplate $(MSILANGPACKTEMPLATEDIR) \
287 -languagepack
288
287 $(MAKE_INSTALLER_COMMAND) \
288 -p Apache_OpenOffice \
289 -msitemplate $(MSILANGPACKTEMPLATEDIR) \
290 -languagepack
291
289ooodevlanguagepack_%{$(PKGFORMAT:^".")} :
292#ooodevlanguagepack_%{$(PKGFORMAT:^".")} :
293$(foreach,P,$(PACKAGE_FORMATS) $(foreach,L,$(alllangiso) ooodevlanguagepack_$L.$P)) .PHONY :
290 $(MAKE_INSTALLER_COMMAND) -p Apache_OpenOffice_Dev -msitemplate $(MSILANGPACKTEMPLATEDIR) -languagepack
291
294 $(MAKE_INSTALLER_COMMAND) -p Apache_OpenOffice_Dev -msitemplate $(MSILANGPACKTEMPLATEDIR) -languagepack
295
292sdkoo_%{$(PKGFORMAT:^".")} :
296#sdkoo_%{$(PKGFORMAT:^".")} :
297$(foreach,P,$(PACKAGE_FORMATS) $(foreach,L,$(alllangiso) sdkoo_$L.$P)) .PHONY :
293 $(MAKE_INSTALLER_COMMAND) -p Apache_OpenOffice_SDK -msitemplate $(MSISDKOOTEMPLATEDIR) -dontstrip
294
298 $(MAKE_INSTALLER_COMMAND) -p Apache_OpenOffice_SDK -msitemplate $(MSISDKOOTEMPLATEDIR) -dontstrip
299
295sdkoodev_%{$(PKGFORMAT:^".")} :
300#sdkoodev_%{$(PKGFORMAT:^".")} :
301$(foreach,P,$(PACKAGE_FORMATS) $(foreach,L,$(alllangiso) sdkoodev_$L.$P)) .PHONY :
296 $(MAKE_INSTALLER_COMMAND) -p Apache_OpenOffice_Dev_SDK -msitemplate $(MSISDKOOTEMPLATEDIR) -dontstrip
297
298.ELSE # "$(alllangiso)"!=""
299openoffice:
300 @echo cannot pack nothing...
301
302.ENDIF # "$(alllangiso)"!=""
303

--- 213 unchanged lines hidden ---
302 $(MAKE_INSTALLER_COMMAND) -p Apache_OpenOffice_Dev_SDK -msitemplate $(MSISDKOOTEMPLATEDIR) -dontstrip
303
304.ELSE # "$(alllangiso)"!=""
305openoffice:
306 @echo cannot pack nothing...
307
308.ENDIF # "$(alllangiso)"!=""
309

--- 213 unchanged lines hidden ---