]> gitweb.michael.orlitzky.com - dunshire.git/blobdiff - makefile
Add a MANIFEST.in file, and a new "make dist" target.
[dunshire.git] / makefile
index 9c823dd7c56e90345c2351132b2d9a7653724e94..122096547f336f92ad28e6f97d795559c41cb78d 100644 (file)
--- a/makefile
+++ b/makefile
@@ -32,8 +32,17 @@ checkloop:
 lint:
        pylint --rcfile=./.pylintrc $(SRCS)
 
+# Create a source distribution tarball. First we clean up, to make
+# sure no junk gets added to the distribution. Then we build the docs
+# so that users will get some usable HTML documentation and not just
+# the source files.
+.PHONY: dist
+dist: clean doc
+       python setup.py sdist
+
 # Delete urrythang.
 .PHONY: clean
 clean:
        rm -rf $(PN)/__pycache__ test/__pycache__ doc/build
        rm -rf $(PN).egg-info
+       rm -rf dist