forked from RKrahl/pytest-dependency
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
41 lines (29 loc) · 767 Bytes
/
Makefile
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
30
31
32
33
34
35
36
37
38
39
40
41
PYTHON = python
BUILDDIR = $(CURDIR)/build
build:
$(PYTHON) setup.py build
test: build
PYTHONPATH=$(BUILDDIR)/lib $(PYTHON) -m pytest tests
sdist: python2_6.patch .gitrevision
$(PYTHON) setup.py sdist
doc-html:
$(MAKE) -C doc html
clean:
rm -f *~ tests/*~
rm -rf build
$(MAKE) -C doc clean
distclean: clean
rm -rf .cache tests/.cache
rm -f MANIFEST
rm -f *.pyc tests/*.pyc
rm -rf __pycache__ tests/__pycache__
rm -rf dist
rm -rf pytest_dependency.egg-info
rm -f python2_6.patch
$(MAKE) -C doc distclean
.gitrevision:
git describe --always --dirty > .gitrevision
python2_6.patch:
git diff `git merge-base master python2_6` python2_6 \
-- . ':(exclude).travis.yml' > $@
.PHONY: build test sdist doc-html clean distclean .gitrevision