summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMichele Simionato <michele.simionato@gmail.com>2015-07-26 07:52:33 +0200
committerMichele Simionato <michele.simionato@gmail.com>2015-07-26 07:52:33 +0200
commit24d5f1539f0d876e4871ecca4f671d0710ab35bf (patch)
tree33b6d0b1322038f5fbaa183cd837be5c9c448ef4 /Makefile
parentbd0f62ec00f01073f72bf55bc8433c5735fe18d9 (diff)
downloadpython-decorator-git-24d5f1539f0d876e4871ecca4f671d0710ab35bf.tar.gz
Generated HTML docs and removed documentation.rst
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 10 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index aaf5ea1..116b2aa 100644
--- a/Makefile
+++ b/Makefile
@@ -1,16 +1,16 @@
-RST=python $(S)/ms/tools/rst.py
+RST=$(S)/ms/tools/rst.py -H
rst: src/tests/documentation.py
- PYTHONPATH=src:$(S) python3 $(S)/minidoc3.py -d tests.documentation
- cp /tmp/tests.documentation.rst docs/documentation.rst
+ PYTHONPATH=src:$(S) $(S)/ms/tools/minidoc.py -d tests.documentation
-html: docs/documentation.rst README.rst
- $(RST) docs/documentation.rst
- rst2html README.rst docs/index.html
+html: /tmp/tests.documentation.rst docs/README.rst
+ $(RST) /tmp/tests.documentation.rst
+ $(RST) docs/README.rst
+ mv docs/README.html docs/index.html
+ mv /tmp/tests.documentation.html docs/documentation.html
-pdf: docs/documentation.rst
- rst2pdf docs/documentation.rst -o docs/documentation.pdf
+pdf: /tmp/tests.documentation.rst
+ rst2pdf /tmp/tests.documentation.rst -o documentation.pdf
-upload: documentation.pdf
- git clean -f
+upload: documentation.pdf docs/index.html
python3 setup.py register sdist bdist_wheel upload upload_docs