1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 topsrcdir
= @top_srcdir@
10 include $(DEPTH
)/config
/autoconf.mk
12 GAIA_PATH
:= gaia
/profile
14 PROGRAM
= $(MOZ_APP_NAME
)$(BIN_SUFFIX
)
16 ifeq ($(OS_ARCH
),WINNT
)
19 -DB2G_NAME
=L
\"$(MOZ_APP_NAME
)-bin
$(BIN_SUFFIX
)\" \
20 -DGAIA_PATH
=L
\"$(subst /,\\\\,$(GAIA_PATH
))\" \
23 else # Non-windows machines use the same wrapper program
26 -DB2G_NAME
=\"$(MOZ_APP_NAME
)-bin
$(BIN_SUFFIX
)\" \
27 -DGAIA_PATH
=\"$(GAIA_PATH
)\" \
32 # This is needed to avoid making run-b2g depend on mozglue
35 GENERATED_DIRS
+= $(DIST
)/bin
/$(GAIA_PATH
)
37 include $(topsrcdir
)/config
/rules.mk
40 $(GAIA_MAKE
) -j1
-C
$(GAIADIR
) clean
41 $(GAIA_MAKE
) -j1
-C
$(GAIADIR
) profile
42 (cd
$(GAIADIR
)/profile
&& tar $(TAR_CREATE_FLAGS
) - .
) |
(cd
$(abspath
$(DIST
))/bin
/$(GAIA_PATH
) && tar -xf
-)