Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

79 lines (61 sloc) 1.728 kb
PYTHON = python
MAKELAUNCHER =
SYS := $(shell uname -s)
ifeq ($(SYS), Darwin)
MAKELAUNCHER := ${MAKE} -C addons/jetpack/mac/
endif
ifeq ($(TOPSRCDIR),)
export TOPSRCDIR = $(shell pwd)
endif
profile :=
ifneq ($(OWA_PROFILE),)
profile := --profiledir="$(OWA_PROFILE)"
endif
deps := $(TOPSRCDIR)/deps
ifneq ($(DEPSDIR),)
deps := $(DEPSDIR)
endif
binary :=
ifneq ($(MOZ_BINARY),)
binary := -b "$(MOZ_BINARY)"
endif
addon_sdk := $(deps)/addon-sdk/bin
oauthorizer := $(deps)/oauthorizer
openwebapps := $(TOPSRCDIR)/addons/jetpack
activities := $(TOPSRCDIR)/addons/activities
ifeq ($(TARGET),activities)
pkgdir := $(activities)
cfx_args := --pkgdir=$(pkgdir) $(binary) $(profile) --package-path=$(oauthorizer) --binary-args="-console -purgecaches $(BINARYARGS)"
else
pkgdir := $(openwebapps)
cfx_args := --pkgdir=$(pkgdir) $(binary) $(profile) --binary-args="-console -purgecaches $(BINARYARGS)"
endif
# Ability to pass in a list of static args in json format
# Ex: export STATIC_ARGS='\"dashboard\":\"myapps.mozillalabs.com\", \"appsyncurl\":\"https://myapps.mozillalabs.com\"'
ifneq ($(STATIC_ARGS),)
cfx_args += --static-args="{$(STATIC_ARGS)}"
endif
test_args :=
ifneq ($(TEST),)
test_args := -f $(TEST)
endif
# might be useful for symlink handling...
SLINK = ln -sf
ifneq ($(findstring MINGW,$(shell uname -s)),)
SLINK = cp -r
export NO_SYMLINK = 1
endif
all: xpi
xpi: pull
$(addon_sdk)/cfx xpi $(cfx_args)
pull:
$(MAKELAUNCHER)
$(PYTHON) build.py -p $(pkgdir)/package.json
test:
$(addon_sdk)/cfx test -v $(cfx_args) $(test_args)
run:
$(MAKELAUNCHER)
$(addon_sdk)/cfx run $(cfx_args)
build_rpms:
cd site/tools; ./build_rpm.sh
.PHONY: xpi clean pull test run build_rpms
Jump to Line
Something went wrong with that request. Please try again.