File: Makefile

package info (click to toggle)
python-fastimport 0.9.14-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 416 kB
  • sloc: python: 3,548; makefile: 26; sh: 4
file content (29 lines) | stat: -rw-r--r-- 452 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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