testing/peptest/Makefile.in
author Gervase Markham <gerv@gerv.net>
Mon, 21 May 2012 12:12:37 +0100
changeset 95919 f4157e8c410708d76703f19e4dfb61859bfe32d8
parent 82680 65c05ff60e47d68eebe82705b389c07ece2bdfcd
child 103266 2ef51674316aadfe26a46877b16794f758bf4b6d
permissions -rw-r--r--
Bug 716478 - update licence to MPL 2.

# 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 = ../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@

include $(DEPTH)/config/autoconf.mk

MODULE = testing_peptest

include $(topsrcdir)/config/rules.mk

PEPTEST_HARNESS = \
  peptest \
  $(NULL)

PEPTEST_EXTRAS = \
  setup.py \
  runtests.py \
  MANIFEST.in \
  README.md \
  $(NULL)

PEPTEST_TESTS = \
  tests \
  $(NULL)

_DEST_DIR = $(DEPTH)/_tests/peptest
libs:: $(PEPTEST_HARNESS)
	$(PYTHON) $(topsrcdir)/config/nsinstall.py $^ $(_DEST_DIR)
libs:: $(PEPTEST_EXTRAS)
	$(PYTHON) $(topsrcdir)/config/nsinstall.py $^ $(_DEST_DIR)
libs:: $(PEPTEST_TESTS)
	$(PYTHON) $(topsrcdir)/config/nsinstall.py $^ $(_DEST_DIR)

stage-package: PKG_STAGE = $(DIST)/test-package-stage
stage-package:
	$(NSINSTALL) -D $(PKG_STAGE)/peptest
	@(cd $(srcdir) && tar $(TAR_CREATE_FLAGS) - $(PEPTEST_HARNESS)) | (cd $(PKG_STAGE)/peptest && tar -xf -)
	@(cd $(srcdir) && tar $(TAR_CREATE_FLAGS) - $(PEPTEST_EXTRAS)) | (cd $(PKG_STAGE)/peptest && tar -xf -)
	@(cd $(srcdir) && tar $(TAR_CREATE_FLAGS) - $(PEPTEST_TESTS)) | (cd $(PKG_STAGE)/peptest && tar -xf -)