]> gitweb.michael.orlitzky.com - dunshire.git/blob - makefile
Reorganize the test source code and doc building.
[dunshire.git] / makefile
1 PN := dunshire
2 SRCDIR := src/$(PN)
3 TESTDIR := src/test
4 SRCS := $(SRCDIR)/*.py
5
6 doc: $(SRCS) doc/source/conf.py doc/makefile
7 cd doc && $(MAKE) html
8
9 .PHONY: doctest
10 doctest:
11 cd doc && $(MAKE) doctest
12
13 .PHONY: check
14 check:
15 PYTHONPATH=src python $(TESTDIR)/suite.py
16
17 .PHONY: lint
18 lint:
19 pylint --rcfile=./.pylintrc $(SRCS)
20
21 .PHONY: clean
22 clean:
23 rm -rf $(SRCDIR)/__pycache__ $(TESTDIR)/__pycache__ doc/build