Bug 1611596 [wpt PR 21420] - Fix buggy testcase font-variant-position-01.html, a...
[gecko.git] / tools / update-packaging / Makefile.in
blob91ba79b047b96ed7c4dd6c302b6f1fa3c2d5446f
1 # vim:set ts=8 sw=8 sts=8 noet:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 STANDALONE_MAKEFILE := 1
9 # input location for the build, usually $(DIST)
10 # set this to $(DIST)/l10n-stage per override for L10n builds
11 PACKAGE_BASE_DIR = $(DIST)
13 # Default output location for update archive
14 STAGE_DIR = $(ABS_DIST)/$(PKG_UPDATE_PATH)
16 ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
17 PACKAGE_DIR = $(PACKAGE_BASE_DIR)/$(MOZ_PKG_DIR)/$(MOZ_MACBUNDLE_NAME)
18 else
19 PACKAGE_DIR = $(PACKAGE_BASE_DIR)/$(MOZ_PKG_DIR)
20 endif
22 MAR_BIN = $(DIST)/host/bin/mar$(HOST_BIN_SUFFIX)
23 MBSDIFF_BIN = $(DIST)/host/bin/mbsdiff$(HOST_BIN_SUFFIX)
25 OVERRIDE_DEFAULT_GOAL := full-update
26 full-update:: complete-patch
28 ifeq ($(OS_TARGET), WINNT)
29 MOZ_PKG_FORMAT := SFX7Z
30 UNPACKAGE = '$(subst $(DIST),$(ABS_DIST),$(INSTALLER_PACKAGE))'
31 endif
33 include $(topsrcdir)/config/rules.mk
34 include $(topsrcdir)/toolkit/mozapps/installer/packager.mk
36 dir-stage := $(call mkdir_deps,$(STAGE_DIR))
38 complete-patch:: $(dir-stage)
39 # unpack the windows installer, unless we're an l10n repack, we just packed this
40 ifndef IS_LANGUAGE_REPACK
41 ifeq ($(OS_TARGET), WINNT)
42 test -f $(UNPACKAGE)
43 $(RM) -rf '$(PACKAGE_DIR)'
44 cd $(PACKAGE_BASE_DIR) && $(INNER_UNMAKE_PACKAGE)
45 endif
46 endif
47 MAR=$(MAR_BIN) \
48 MOZ_PRODUCT_VERSION=$(MOZ_APP_VERSION) \
49 $(srcdir)/make_full_update.sh \
50 '$(DIST)/$(COMPLETE_MAR)' \
51 '$(PACKAGE_DIR)'
53 partial-patch:: $(dir-stage)
54 MAR=$(MAR_BIN) \
55 MBSDIFF=$(MBSDIFF_BIN) \
56 MOZ_PRODUCT_VERSION=$(MOZ_APP_VERSION) \
57 $(srcdir)/make_incremental_update.sh \
58 '$(STAGE_DIR)/$(PKG_UPDATE_BASENAME).partial.$(SRC_BUILD_ID)-$(DST_BUILD_ID).mar' \
59 '$(SRC_BUILD)' \
60 '$(DST_BUILD)'