forked from scottprahl/laserbeamsize
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
59 lines (49 loc) · 1.14 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
HTMLOPTS ?=
PDFOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = docs
BUILDDIR = docs/_build
test:
pytest tests
html:
$(SPHINXBUILD) -b html "$(SOURCEDIR)" "$(BUILDDIR)" $(HTMLOPTS)
open docs/_build/index.html
pdf:
$(SPHINXBUILD) -b latex "$(SOURCEDIR)" "$(BUILDDIR)" $(PDFOPTS)
pycheck:
-pylint laserbeamsize/m2.py
-pylint laserbeamsize/laserbeamsize.py
-pylint laserbeamsize/__init__.py
doccheck:
-pydocstyle laserbeamsize/m2.py
-pydocstyle laserbeamsize/laserbeamsize.py
-pydocstyle laserbeamsize/__init__.py
rstcheck:
-rstcheck README.rst
-rstcheck CHANGELOG.rst
-rstcheck docs/index.rst
-rstcheck docs/changelog.rst
-rstcheck --ignore-directives automodapi docs/laserbeamsize.rst
rcheck:
make clean
make test
make pycheck
make doccheck
make rstcheck
touch docs/*ipynb
touch docs/*rst
make html
check-manifest
pyroma -d .
clean:
rm -rf dist
rm -rf laserbeamsize.egg-info
rm -rf laserbeamsize/__pycache__
rm -rf docs/_build
rm -rf docs/api
rm -rf docs/.ipynb_checkpoints
rm -rf __pycache__
rm -rf build
rm -rf .eggs
rm -rf .pytest_cache
.PHONY: clean rcheck html notecheck pycheck doccheck test rstcheck