2005-06-17 02:28:09 +04:00
|
|
|
# vim:set ts=8 sw=8 sts=8 noet:
|
|
|
|
#
|
2012-05-21 15:12:37 +04:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2005-06-17 02:28:09 +04:00
|
|
|
|
2013-02-26 01:20:01 +04:00
|
|
|
STANDALONE_MAKEFILE := 1
|
|
|
|
|
2008-09-18 00:53:09 +04:00
|
|
|
# input location for the build, usually $(DIST)
|
|
|
|
# set this to $(DIST)/l10n-stage per override for L10n builds
|
|
|
|
PACKAGE_BASE_DIR = $(DIST)
|
|
|
|
|
2005-06-17 02:28:09 +04:00
|
|
|
# Default output location for update archive
|
2015-12-30 03:40:03 +03:00
|
|
|
STAGE_DIR = $(ABS_DIST)/$(PKG_UPDATE_PATH)
|
2005-06-17 02:28:09 +04:00
|
|
|
|
2009-09-19 06:59:53 +04:00
|
|
|
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
2011-10-27 21:27:56 +04:00
|
|
|
PACKAGE_DIR = $(PACKAGE_BASE_DIR)/$(MOZ_PKG_DIR)/$(MOZ_MACBUNDLE_NAME)
|
2008-03-13 21:39:38 +03:00
|
|
|
else
|
2008-12-24 17:08:08 +03:00
|
|
|
PACKAGE_DIR = $(PACKAGE_BASE_DIR)/$(MOZ_PKG_DIR)
|
2005-07-06 01:51:26 +04:00
|
|
|
endif
|
|
|
|
|
2015-11-13 12:23:24 +03:00
|
|
|
MAR_BIN = $(DIST)/host/bin/mar$(HOST_BIN_SUFFIX)
|
|
|
|
MBSDIFF_BIN = $(DIST)/host/bin/mbsdiff$(HOST_BIN_SUFFIX)
|
2006-03-08 03:48:57 +03:00
|
|
|
|
2013-05-05 12:16:25 +04:00
|
|
|
OVERRIDE_DEFAULT_GOAL := full-update
|
2015-08-12 16:49:03 +03:00
|
|
|
full-update:: complete-patch
|
2005-08-28 07:27:14 +04:00
|
|
|
|
2011-04-11 20:23:26 +04:00
|
|
|
ifeq ($(OS_TARGET), WINNT)
|
|
|
|
MOZ_PKG_FORMAT := SFX7Z
|
2015-12-30 03:33:50 +03:00
|
|
|
UNPACKAGE = '$(subst $(DIST),$(ABS_DIST),$(INSTALLER_PACKAGE))'
|
2011-04-11 20:23:26 +04:00
|
|
|
endif
|
|
|
|
|
2011-12-08 02:06:52 +04:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
include $(topsrcdir)/toolkit/mozapps/installer/packager.mk
|
|
|
|
|
2012-05-03 14:22:33 +04:00
|
|
|
dir-stage := $(call mkdir_deps,$(STAGE_DIR))
|
|
|
|
|
|
|
|
complete-patch:: $(dir-stage)
|
2017-08-22 16:27:51 +03:00
|
|
|
# unpack the windows installer, unless we're an l10n repack, we just packed this
|
|
|
|
ifndef IS_LANGUAGE_REPACK
|
2011-04-11 20:23:26 +04:00
|
|
|
ifeq ($(OS_TARGET), WINNT)
|
|
|
|
test -f $(UNPACKAGE)
|
2013-12-03 01:34:21 +04:00
|
|
|
$(RM) -rf '$(PACKAGE_DIR)'
|
2011-04-11 20:23:26 +04:00
|
|
|
cd $(PACKAGE_BASE_DIR) && $(INNER_UNMAKE_PACKAGE)
|
2017-08-22 16:27:51 +03:00
|
|
|
endif
|
2011-04-11 20:23:26 +04:00
|
|
|
endif
|
2006-03-08 03:48:57 +03:00
|
|
|
MAR=$(MAR_BIN) \
|
2017-01-25 18:18:45 +03:00
|
|
|
MOZ_PRODUCT_VERSION=$(MOZ_APP_VERSION) \
|
2005-08-28 07:27:14 +04:00
|
|
|
$(srcdir)/make_full_update.sh \
|
2014-10-25 02:24:33 +04:00
|
|
|
'$(DIST)/$(COMPLETE_MAR)' \
|
2013-12-03 01:34:21 +04:00
|
|
|
'$(PACKAGE_DIR)'
|
2005-08-28 07:27:14 +04:00
|
|
|
|
2012-05-03 14:22:33 +04:00
|
|
|
partial-patch:: $(dir-stage)
|
2006-03-08 03:48:57 +03:00
|
|
|
MAR=$(MAR_BIN) \
|
|
|
|
MBSDIFF=$(MBSDIFF_BIN) \
|
2017-01-25 18:18:45 +03:00
|
|
|
MOZ_PRODUCT_VERSION=$(MOZ_APP_VERSION) \
|
2005-08-28 07:27:14 +04:00
|
|
|
$(srcdir)/make_incremental_update.sh \
|
2013-12-03 01:34:21 +04:00
|
|
|
'$(STAGE_DIR)/$(PKG_UPDATE_BASENAME).partial.$(SRC_BUILD_ID)-$(DST_BUILD_ID).mar' \
|
|
|
|
'$(SRC_BUILD)' \
|
|
|
|
'$(DST_BUILD)'
|