diff options
| author | Jelmer Vernooij <jelmer@jelmer.uk> | 2021-09-18 16:55:06 +0100 |
|---|---|---|
| committer | Jelmer Vernooij <jelmer@jelmer.uk> | 2021-09-18 16:55:06 +0100 |
| commit | 90cc92891309e192f6c6ba2665badac12619a1ed (patch) | |
| tree | c6e3e5720f914749799946f40bca3a39b0729f02 /Makefile | |
| parent | 088bc0459e50bbcb948f3317772825859347b014 (diff) | |
| parent | 6ed4b196e21974c6bac4323522cd086794618068 (diff) | |
| download | python-fastimport-git-upstream.tar.gz | |
Import upstream version 0.9.14upstream/0.9.14upstream
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 |
