2012-05-21 04:12:37 -07: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/.
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
# BE CAREFUL! This makefile handles a postflight_all rule for a
|
|
|
|
# multi-project build, so DON'T rely on anything that might differ between
|
|
|
|
# the two OBJDIRs.
|
|
|
|
|
|
|
|
ifndef OBJDIR
|
2010-06-15 09:31:38 -07:00
|
|
|
OBJDIR_ARCH_1 = $(MOZ_OBJDIR)/$(firstword $(MOZ_BUILD_PROJECTS))
|
|
|
|
OBJDIR_ARCH_2 = $(MOZ_OBJDIR)/$(word 2,$(MOZ_BUILD_PROJECTS))
|
|
|
|
DIST_ARCH_1 = $(OBJDIR_ARCH_1)/dist
|
|
|
|
DIST_ARCH_2 = $(OBJDIR_ARCH_2)/dist
|
|
|
|
DIST_UNI = $(DIST_ARCH_1)/universal
|
|
|
|
OBJDIR = $(OBJDIR_ARCH_1)
|
2007-03-22 10:30:00 -07:00
|
|
|
endif
|
|
|
|
|
2012-06-20 00:00:48 -07:00
|
|
|
topsrcdir = $(TOPSRCDIR)
|
2013-04-15 23:23:18 -07:00
|
|
|
DEPTH = $(OBJDIR)
|
2007-03-22 10:30:00 -07:00
|
|
|
include $(OBJDIR)/config/autoconf.mk
|
|
|
|
|
|
|
|
DIST = $(OBJDIR)/dist
|
|
|
|
|
|
|
|
postflight_all:
|
|
|
|
mkdir -p $(DIST_UNI)/$(MOZ_PKG_APPNAME)
|
2010-06-15 09:31:38 -07:00
|
|
|
rm -f $(DIST_ARCH_2)/universal
|
2013-10-16 15:55:16 -07:00
|
|
|
ln -s $(abspath $(DIST_UNI)) $(DIST_ARCH_2)/universal
|
2013-01-24 15:40:13 -08:00
|
|
|
# Stage a package for buildsymbols to be happy. Doing so in OBJDIR_ARCH_1
|
|
|
|
# actually does a universal staging with both OBJDIR_ARCH_1 and OBJDIR_ARCH_2.
|
2013-01-29 00:35:53 -08:00
|
|
|
$(MAKE) -C $(OBJDIR_ARCH_1)/$(MOZ_BUILD_APP)/installer \
|
2013-01-24 15:40:13 -08:00
|
|
|
PKG_SKIP_STRIP=1 stage-package
|