]> gitweb.michael.orlitzky.com - dunshire.git/blob - makefile
Use the DEBUG_FLOAT_FORMAT when printing exception details.
[dunshire.git] / makefile
1 PN := dunshire
2 SRCS := $(PN)/*.py test/*.py
3
4 # Sphinx tries to keep track of which docs need to be built on its
5 # own. We could do better, but we would have to duplicate all of the
6 # information that we already gave Sphinx to make it work.
7 .PHONY: doc
8 doc:
9 cd doc && $(MAKE) html
10
11 .PHONY: doctest
12 doctest:
13 cd doc && $(MAKE) doctest
14
15 .PHONY: check
16 check:
17 PYTHONPATH="." test/__main__.py
18
19 .PHONE: checkloop
20 checkloop:
21 COUNT=0; \
22 while [ $$? -eq 0 ]; do \
23 COUNT=`expr $$COUNT + 1`; \
24 echo $$COUNT; \
25 PYTHONPATH="." test/__main__.py; \
26 done;
27
28 .PHONY: lint
29 lint:
30 pylint --rcfile=./.pylintrc $(SRCS)
31
32 .PHONY: clean
33 clean:
34 rm -rf $(PN)/__pycache__ test/__pycache__ doc/build
35 rm -rf $(PN).egg-info