diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2013-09-22 22:50:42 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2013-09-22 22:50:42 +0100 |
commit | 981a3d55cce44e45701a2fc76104f20595414e1f (patch) | |
tree | f6e548c26b7ce8b6eff0f973b26b6e67d36468dc /Makefile | |
parent | 95edd587bed820683e7de0abf3c990dfcd4726e6 (diff) | |
download | python-fastimport-git-981a3d55cce44e45701a2fc76104f20595414e1f.tar.gz |
Add Makefile.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f464e55 --- /dev/null +++ b/Makefile @@ -0,0 +1,29 @@ +PYTHON = python +SETUP = $(PYTHON) setup.py +ifeq ($(shell $(PYTHON) -c "import sys; print sys.version_info >= (2, 7)"),True) +TESTRUNNER ?= unittest +else +TESTRUNNER ?= unittest2.__main__ +endif +RUNTEST = PYTHONPATH=.:$(PYTHONPATH) $(PYTHON) -m $(TESTRUNNER) + +DESTDIR=/ + +all: build + +build:: + $(SETUP) build + +install:: + $(SETUP) install --root="$(DESTDIR)" + +check:: build + $(RUNTEST) fastimport.tests.test_suite + +check-pypy:: clean + $(MAKE) check-noextensions PYTHON=pypy + +check-all: check check-pypy + +clean:: + $(SETUP) clean --all |