summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMichal Minar <miminar@redhat.com>2013-09-11 14:34:31 +0200
committerMichal Minar <miminar@redhat.com>2013-09-11 14:34:31 +0200
commit09483cca62da1b7758858f33ec3af4deaf46296a (patch)
tree5cd77d7a408bd56130183ca9d3dcaec0ddcac566 /Makefile
parentd98895efcd6ade1b7f126fffdf8454eeaec715f8 (diff)
downloadopenlmi-scripts-09483cca62da1b7758858f33ec3af4deaf46296a.tar.gz
openlmi-scripts-09483cca62da1b7758858f33ec3af4deaf46296a.tar.xz
openlmi-scripts-09483cca62da1b7758858f33ec3af4deaf46296a.zip
convert README to reStructuredText when making sdist
added simple Makefile to automate some tasks
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..af3490b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,23 @@
+PYTHONPATH?=$(HOME)/workspace/python_sandbox
+DEVELOPDIR?=$(shell echo $(PYTHONPATH) | cut -d : -f 1)
+
+all: sdist
+
+sdist:
+ python setup.py sdist
+
+develop:
+ python setup.py develop --install-dir=$(DEVELOPDIR)
+
+readme: README.txt
+
+%.txt: %.md
+ pandoc --from=markdown --to=rst -o $@ $?
+
+upload_docs:
+ make -C doc html
+ python setup.py upload_docs
+
+clean:
+ -rm README.txt
+ make -C doc clean