michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: include $(topsrcdir)/config/config.mk michael@0: michael@0: ifeq (gonk,$(MOZ_WIDGET_TOOLKIT)) michael@0: MOZ_B2G=1 michael@0: else michael@0: MOZ_B2G=0 michael@0: endif michael@0: michael@0: libs:: michael@0: $(PYTHON) $(srcdir)/copy_source.py $(topsrcdir) $(srcdir)/source/lib $(FINAL_TARGET)/modules/commonjs $(MOZ_B2G) >copy_source.mk michael@0: $(MAKE) -f copy_source.mk libs michael@0: michael@0: include $(topsrcdir)/config/rules.mk michael@0: michael@0: TEST_FILES = \ michael@0: source/app-extension \ michael@0: source/bin \ michael@0: source/python-lib \ michael@0: source/test \ michael@0: source/package.json \ michael@0: source/mapping.json \ michael@0: $(NULL) michael@0: michael@0: # Remove this once the test harness uses the APIs built into Firefox michael@0: TEST_FILES += source/lib michael@0: michael@0: PKG_STAGE = $(DIST)/test-package-stage michael@0: michael@0: stage-tests-package:: $(TEST_FILES) michael@0: $(INSTALL) $^ $(PKG_STAGE)/jetpack