b2g/gaia/Makefile.in
author John Schoenick <jschoenick@mozilla.com>
Wed, 07 Aug 2013 13:23:42 -0700
changeset 148423 19d4d4a860515ca0b1b62058864dcf73dd1cab0a
parent 144532 6e45e9f62d2171419a8d8780ad4779ff0488ccb5
child 158516 45097bc3a57898f22a4f3b74f8f8cf7511f5d0a4
permissions -rw-r--r--
Bug 902375 - Actually use the optional parameter added explicitly for this purpose. r=bsmedberg, a=bajaj

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

DEPTH     = @DEPTH@
topsrcdir = @top_srcdir@
srcdir    = @srcdir@
VPATH     = @srcdir@

include $(DEPTH)/config/autoconf.mk

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)
GAIA_MAKE=make
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)
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 -)