]> gitweb.michael.orlitzky.com - dunshire.git/blobdiff - makefile
Add setup.py and reorganize everything to make its "test" command happy.
[dunshire.git] / makefile
index 7fe104e2140476613e6a08c00c97fc5304e7ed6a..0cd51823d36ae7faabae243778b6d66319fc7a35 100644 (file)
--- a/makefile
+++ b/makefile
@@ -1,5 +1,5 @@
 PN := dunshire
-SRCS := src/$(PN)/*.py src/test/*.py
+SRCS := $(PN)/*.py test/*.py
 
 doc: $(SRCS) doc/source/conf.py doc/makefile
        cd doc && $(MAKE) html
@@ -10,7 +10,7 @@ doctest:
 
 .PHONY: check
 check:
-       PYTHONPATH=src python src/test/suite.py
+       PYTHONPATH="." python test/
 
 .PHONY: lint
 lint:
@@ -18,4 +18,5 @@ 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