| 1 |
PYTHON := python |
| 2 |
|
| 3 |
all: |
| 4 |
@echo Available targets: |
| 5 |
@echo clean - clean build directory |
| 6 |
@echo test - run unittest |
| 7 |
@echo epydoc - run epydoc to create API documentation (python 2) |
| 8 |
@echo wininst - Windows installer for Python |
| 9 |
@echo docs - build docs with ReST and Sphinx |
| 10 |
@echo wheel - build python wheel binary archive |
| 11 |
|
| 12 |
.PHONY: clean test epydoc wininst docs |
| 13 |
|
| 14 |
clean: |
| 15 |
$(PYTHON) setup.py clean -a |
| 16 |
|
| 17 |
test: |
| 18 |
$(PYTHON) setup.py test -q |
| 19 |
|
| 20 |
epydoc: |
| 21 |
epydoc.py -o api -v intelhex |
| 22 |
|
| 23 |
wininst: |
| 24 |
$(PYTHON) setup.py bdist_wininst -d. |
| 25 |
|
| 26 |
docs: |
| 27 |
rst2html5.py docs/manual.txt docs/manual.html |
| 28 |
make -C docs/manual html |
| 29 |
|
| 30 |
wheel: |
| 31 |
$(PYTHON) -m pip wheel -w dist . |