summaryrefslogtreecommitdiff
path: root/docs/users_guide_src/Makefile
diff options
context:
space:
mode:
authorR. Tyler Ballance <tyler@monkeypox.org>2009-11-16 21:09:13 -0800
committerR. Tyler Ballance <tyler@monkeypox.org>2009-11-16 21:09:13 -0800
commitd9ce7916e309e2393d824e249f512d2629e5e181 (patch)
tree6b7ad5cd6292f6e017e048fbeb4551facbabd174 /docs/users_guide_src/Makefile
parente43765a679b84c52df875e9629d303e304af50a1 (diff)
downloadpython-cheetah-docs.tar.gz
Revert "Delete the "old" docs directory to make way for fancy smancy sphinx"docs
This reverts commit 5dc95cfcd015628665d3672e56d0551943b5db6b.
Diffstat (limited to 'docs/users_guide_src/Makefile')
-rwxr-xr-xdocs/users_guide_src/Makefile39
1 files changed, 39 insertions, 0 deletions
diff --git a/docs/users_guide_src/Makefile b/docs/users_guide_src/Makefile
new file mode 100755
index 0000000..8b8e977
--- /dev/null
+++ b/docs/users_guide_src/Makefile
@@ -0,0 +1,39 @@
+# You must change PYTHONSRC to the path of your Python source distributon.
+# OR just create a symlink that matches this path.
+PYTHONSRC=/usr/local/src/Python-source
+DOCNAME=users_guide
+MKHOWTO=$(PYTHONSRC)/Doc/tools/mkhowto
+MAIN_TEX_FILE= users_guide.tex
+
+all: ps pdf html htmlMultiPage text
+
+almost-all: ps html htmlMultiPage text
+
+pdf:
+ $(MKHOWTO) --pdf $(MAIN_TEX_FILE)
+ mv $(DOCNAME).pdf ../
+
+ps:
+ $(MKHOWTO) --ps $(MAIN_TEX_FILE)
+ mv $(DOCNAME).ps ../
+html:
+ -rm -rf $(DOCNAME)
+ $(MKHOWTO) --html --split 1 --iconserver . $(MAIN_TEX_FILE)
+ -rm -rf ../$(DOCNAME)_html
+ mv $(DOCNAME) ../$(DOCNAME)_html
+
+htmlMultiPage:
+ -rm -rf $(DOCNAME)
+ $(MKHOWTO) --html --iconserver . $(MAIN_TEX_FILE)
+ -rm -rf ../$(DOCNAME)_html_multipage
+ mv $(DOCNAME) ../$(DOCNAME)_html_multipage
+
+text:
+ $(MKHOWTO) --text $(MAIN_TEX_FILE)
+ mv $(DOCNAME).txt ../
+
+clean:
+ -rm -rf $(DOCNAME)
+ -rm -f *.aux *.l2h *~ *.log *.ind *.bkm *.how *.toc
+ -rm -rf ../html
+