summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkxxoling <kxxoling@gmail.com>2015-05-01 23:20:36 +0800
committerkxxoling <kxxoling@gmail.com>2015-05-01 23:20:36 +0800
commitdb8cc7afb1350f514cb8c12e7ef902360490b9c1 (patch)
tree5f09b8e17f75ea30fc7cb65b1655226854d2b631
parent71f843b0d918e5c5177b1faa0e58e21c7051b889 (diff)
downloadpython-prettytable-ptable-db8cc7afb1350f514cb8c12e7ef902360490b9c1.tar.gz
Create a Makefile
-rw-r--r--Makefile31
1 files changed, 31 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..45cef54
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,31 @@
+.PHONY: all test
+
+all: test
+
+test:
+
+clean: clean-pyc clean-build
+
+clean-build:
+ @rm -rf build
+ @rm -rf dist
+ @rm -rf *.egg-info
+
+clean-pyc:
+ @find . -name '*.pyc' -exec rm {} \;
+ @find . -name '__pycache__' -type d | xargs rm -rf
+
+make-docs:
+ $(MAKE) -C docs html
+
+develop:
+ @pip install --editable .
+
+install:
+ @python setup.py install
+
+release: test
+ @python setup.py register -r pypi
+ @python setup.py sdist upload -r pypi
+
+.PHONY: release clean clean-pyc develop install clean-build