From 5cacd59da63bb5dc351a9279634c60aa191f437b Mon Sep 17 00:00:00 2001 From: williamcaban Date: Thu, 15 Sep 2005 19:37:55 +0000 Subject: [PATCH] Minor fixed to documentation Makefile to force double execution of pdflatex git-svn-id: http://svn.pyinstaller.org/trunk@77 8dd32b29-ccff-0310-8a9a-9233e24343b1 --- doc/source/Makefile | 52 +++++++++++++++++++++++++++++++++++++-------- 1 file changed, 43 insertions(+), 9 deletions(-) diff --git a/doc/source/Makefile b/doc/source/Makefile index 9c59351..506976d 100644 --- a/doc/source/Makefile +++ b/doc/source/Makefile @@ -4,25 +4,59 @@ .PHONY: doc pdf -all: doc +all: + @echo "#############################################################################" + @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 #" + @echo "#############################################################################" -doc: ../Tutorial.html + +doc: html pdf cleanlogs + @echo "#############################################################################" + @echo "# Documentation generated: Please see ../*.html and ../*.pdf for files #" + @echo "#############################################################################" + + +html: ../Tutorial.html pdf: ../Tutorial.pdf ../Tutorial.html: Tutorial.rst - tools/buildrecursive.py --local --strict --title="PyInstaller Tutorial" --outpath=.. + @tools/buildrecursive.py --local --strict --title="PyInstaller Tutorial" --outpath=.. Tutorial.tex: Tutorial.rst - tools/rst2newlatex.py --stylesheet-path=stylesheets/latex.tex Tutorial.rst Tutorial.tex + @tools/rst2newlatex.py --stylesheet-path=stylesheets/latex.tex Tutorial.rst Tutorial.tex ../Tutorial.pdf: Tutorial.tex - cd .. ; pdflatex source/Tutorial.tex + @cd .. ; pdflatex source/Tutorial.tex + @echo "#############################################################################" + @echo "# Executing again to fix Table of Content... #" + @echo "#############################################################################" + @cd .. ; pdflatex source/Tutorial.tex clean: - rm -f ../*.html - rm -f ../*.pdf - rm -f ../*.aux - rm -f ../*.out + + @echo "#############################################################################" + @echo "# make cleanall ===> To clean everything #" + @echo "# make cleanlogs ===> To clean *.log, *.aux, etc. but not the .html or .pdf #" + @echo "#############################################################################" + + +cleanall: cleanlogs + @rm -f ../*.pdf + @rm -f ../*.html + @echo "#############################################################################" + @echo "# All logs and documentation removed. #" + @echo "#############################################################################" + + +cleanlogs: + @rm -f ../*.aux + @rm -f ../*.out + @rm -f .log *.log ../*.log + @echo "#############################################################################" + @echo "# All logs and aux removed. #" + @echo "#############################################################################" #