diff options
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..13653b5 --- /dev/null +++ b/Makefile @@ -0,0 +1,29 @@ +PYTHON = python3 +FLAKE8 ?= flake8 +SETUP = $(PYTHON) setup.py +TESTRUNNER ?= unittest +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 PYTHON=pypy + +check-all: check check-pypy + +clean:: + $(SETUP) clean --all + +style: + $(FLAKE8) --exclude=build,.git,.tox |