PN := dunshire
-SRCS := src/$(PN)/*.py src/test/*.py
+SRCS := $(PN)/*.py test/*.py
-doc: $(SRCS) doc/source/conf.py doc/makefile
+# Sphinx tries to keep track of which docs need to be built on its
+# own. We could do better, but we would have to duplicate all of the
+# information that we already gave Sphinx to make it work.
+.PHONY: doc
+doc:
cd doc && $(MAKE) html
.PHONY: doctest
.PHONY: check
check:
- PYTHONPATH=src python src/test/suite.py
+ PYTHONPATH="." test/__main__.py
+
+.PHONY: checkloop
+checkloop:
+ PYTHONPATH="." test/__main__.py --no-doctests --loop
.PHONY: lint
lint:
.PHONY: clean
clean:
- rm -rf src/$(PN)/__pycache__ src/test/__pycache__ doc/build
+ rm -rf $(PN)/__pycache__ test/__pycache__ doc/build
+ rm -rf $(PN).egg-info