-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (28 loc) · 890 Bytes
/
Makefile
File metadata and controls
41 lines (28 loc) · 890 Bytes
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
# ---
develop: bin/python setup.py
bin/python setup.py develop
dist: bin/python setup.py README
bin/python setup.py egg_info sdist
upload: bin/python setup.py README
bin/python setup.py egg_info sdist upload
test: bin/tox
@bin/tox
clean:
$(RM) -r bin build dist include lib local share TAGS tags
find . -name '*.py[co]' -print0 | xargs -r0 $(RM) -r
find . -name '__pycache__' -print0 | xargs -r0 $(RM) -r
find . -name '*.egg' -print0 | xargs -r0 $(RM) -r
find . -name '*.egg-info' -print0 | xargs -r0 $(RM) -r
find . -name '*~' -print0 | xargs -r0 $(RM)
$(RM) -r .eggs .tox _trial_temp
# ---
README: README.markdown
pandoc --from markdown --to rst --output $@ $^
# ---
bin/tox: bin/pip
bin/pip install --quiet --ignore-installed tox
bin/python bin/pip:
virtualenv --python=$(PYTHON) --quiet $(CURDIR)
# ---
.PHONY: develop dist upload test clean