srcanamdw/codescanner/pyinstaller/doc/source/Makefile
changeset 1 22878952f6e2
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/srcanamdw/codescanner/pyinstaller/doc/source/Makefile	Thu Feb 18 12:29:02 2010 +0530
@@ -0,0 +1,53 @@
+#
+# Generate PyInstaller documentation
+#
+
+.PHONY: doc pdf
+
+all:
+	@echo "make doc   ===> To generate a html and pdf of the documentation"
+	@echo "make html  ===> To generate a html of the documentation"
+	@echo "make pdf   ===> To generate a pdf of the documentation"
+
+
+doc: html pdf cleanlogs
+	@echo "Documentation generated: Please see ../*.html and ../*.pdf for files"
+
+
+html: ../Manual.html
+pdf: ../Manual.pdf
+
+../Manual.html: Manual.rst
+	tools/buildrecursive.py --local --strict --title='PyInstaller Manual' --outpath=..
+
+Manual.tex: Manual.rst
+	tools/rst2newlatex.py --stylesheet-path=stylesheets/latex.tex Manual.rst Manual.tex
+
+../Manual.pdf: Manual.tex
+	cd .. ; pdflatex source/Manual.tex
+	@echo "#############################################################################"
+	@echo "# Executing again to fix Table of Content...                                #"
+	@echo "#############################################################################"
+	cd .. ; pdflatex source/Manual.tex
+
+clean:
+	@echo "make cleanall  ===> To clean everything"
+	@echo "make cleanlogs ===> To clean *.log, *.aux, etc. but not the .html or .pdf"
+
+
+cleanall: cleanlogs
+	rm -f ../*.pdf
+	rm -f ../*.html
+	@echo "All logs and documentation removed."
+
+
+cleanlogs:
+	rm -f ../*.aux
+	rm -f ../*.out
+	rm -f .log *.log  ../*.log
+	@echo "All logs and aux removed."
+
+
+#
+# END OF FILE
+#