b2g/gaia/Makefile.in
author Mike Hommey <mh+mozilla@glandium.org>
Thu, 17 Oct 2013 07:56:34 +0900
changeset 165851 834b0761450217414d3d85506863ed833bfcadad
parent 159436 45097bc3a57898f22a4f3b74f8f8cf7511f5d0a4
child 168473 564210bf70b39f6cc0223eec802521e83a97151c
permissions -rw-r--r--
Bug 927260 - Invoke the right gmake when building gaia. r=gps

# 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/.

GAIA_PATH := gaia/profile

ifeq ($(OS_ARCH),WINNT)
DEFINES += \
  -DB2G_NAME=L\"$(MOZ_APP_NAME)-bin$(BIN_SUFFIX)\" \
  -DGAIA_PATH=L\"$(subst /,\\\\,$(GAIA_PATH))\" \
  $(NULL)
else # Non-windows machines use the same wrapper program
CSRCS = run-b2g.c
DEFINES += \
  -DB2G_NAME=\"$(MOZ_APP_NAME)-bin$(BIN_SUFFIX)\" \
  -DGAIA_PATH=\"$(GAIA_PATH)\" \
  $(NULL)
endif

ifdef .PYMAKE
# For use of GNU make in pymake builds.
GAIA_MAKE=$(GMAKE)
else
GAIA_MAKE=$(MAKE)
endif

# This is needed to avoid making run-b2g depend on mozglue
WRAP_LDFLAGS :=

GENERATED_DIRS += $(DIST)/bin/$(GAIA_PATH)

include $(topsrcdir)/config/rules.mk

libs::
	+$(GAIA_MAKE) -j1 -C $(GAIADIR) clean
	+$(GAIA_MAKE) -j1 -C $(GAIADIR) profile
	(cd $(GAIADIR)/profile && tar $(TAR_CREATE_FLAGS) - .) | (cd $(abspath $(DIST))/bin/$(GAIA_PATH) && tar -xf -)