-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (28 loc) · 1005 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
PKGDIR = papas
TESTSDIR = tests
DOCDIR = docs
.PHONY: help clean clean-doc clean-all wheel
help:
@echo "Please use 'make <target>' where <target> is one of"
@echo " clean to remove built, cached, compiled, and temporary package files"
@echo " clean-doc to remove built documentation files"
@echo " clean-all to remove coverage files (in addition to clean and clean_doc)"
@echo " docs to make standalone HTML files, and LaTeX files (pdflatex)"
@echo " build to make package distribution"
@echo " wheel to make wheel binary distribution"
clean:
rm -rf .tox .pytest_cache
rm -rf build dist .eggs *.egg-info
rm -rf $(PKGDIR)/__pycache__ $(PKGDIR)/*.pyc $(PKGDIR)/*.pyo
rm -rf $(TESTSDIR)/__pycache__ $(TESTSDIR)/*.pyc $(PKGDIR)/*.pyo
clean-doc:
$(MAKE) -C $(DOCDIR) clean
clean-all: clean clean-doc
rm -rf htmlcov .coverage*
docs:
$(MAKE) -C $(DOCDIR) html
$(MAKE) -C $(DOCDIR) latexpdf
build:
python3 setup.py build
wheel:
python3 setup.py bdist_wheel