-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (35 loc) · 1.05 KB
/
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
42
43
PKGDIR := facet
TESTDIR := tests
PYTHON := python3
DOCDIR := doc
.PHONY: help build bdist sdist clean doc clean_doc
help:
@echo "Please use 'make <target>' where <target> is one of"
@echo " build to make package distribution"
@echo " bdist to make wheel binary distribution"
@echo " sdist to make source distribution"
@echo " clean to remove build, cache, and temporary files"
@echo " doc to make HTML documentation"
@echo " clean_doc to remove documentation"
build:
$(PYTHON) setup.py build
@echo "Setup build finished."
bdist:
$(PYTHON) setup.py bdist_wheel
@echo "Setup wheel binary distribution finished."
sdist:
$(PYTHON) setup.py sdist
@echo "Setup source distribution finished."
clean:
find . \( -name __pycache__ -o -name "*.py?" \) -print0 | xargs -0 rm -rf
rm -rf flake8.out
rm -rf *.egg-info .eggs
rm -rf .tox
rm -rf .coverage .coverage.* coverage.* htmlcov
rm -rf .pytest_cache
rm -rf dist build
doc:
$(MAKE) -C "$(DOCDIR)" html
clean_doc:
$(MAKE) -C "$(DOCDIR)" clean
rm -rf "$(DOCDIR)/html"