Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

69 lines (54 sloc) 1.446 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) --package-path=$(openwebapps) --binary-args="-console -purgecaches $(BINARYARGS)"
else
pkgdir := $(openwebapps)
cfx_args := --pkgdir=$(pkgdir) $(binary) $(profile) --binary-args="-console -purgecaches $(BINARYARGS)"
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)
.PHONY: xpi clean pull test run
Jump to Line
Something went wrong with that request. Please try again.