Changeset 77

Show
Ignore:
Timestamp:
Thu Sep 15 14:37:55 2005
Author:
williamcaban
Message:

Minor fixed to documentation Makefile to force double execution of pdflatex

Files:

Legend:

Unmodified
Added
Removed
Modified
  • trunk/doc/source/Makefile

    r76 r77  
    5 5 .PHONY: doc pdf  
    6 6  
    7   all: doc  
      7 all:  
      8         @echo "#############################################################################"  
      9         @echo "# make doc   ===> To generate a html and pdf of the documentation           #"  
      10         @echo "# make html  ===> To generate a html of the documentation                   #"  
      11         @echo "# make pdf   ===> To generate a pdf of the documentation                    #"  
      12         @echo "#############################################################################"  
    8 13  
    9   doc: ../Tutorial.html  
      14  
      15 doc: html pdf cleanlogs  
      16         @echo "#############################################################################"  
      17         @echo "# Documentation generated: Please see ../*.html and ../*.pdf for files      #"  
      18         @echo "#############################################################################"  
      19  
      20  
      21 html: ../Tutorial.html  
    10 22 pdf: ../Tutorial.pdf  
    11 23  
    12 24 ../Tutorial.html: Tutorial.rst  
    13           tools/buildrecursive.py --local --strict --title="PyInstaller Tutorial" --outpath=..  
      25         @tools/buildrecursive.py --local --strict --title="PyInstaller Tutorial" --outpath=..  
    13 25  
    14 26 Tutorial.tex: Tutorial.rst  
    15           tools/rst2newlatex.py --stylesheet-path=stylesheets/latex.tex Tutorial.rst Tutorial.tex  
      27         @tools/rst2newlatex.py --stylesheet-path=stylesheets/latex.tex Tutorial.rst Tutorial.tex  
    15 27  
    16 28 ../Tutorial.pdf: Tutorial.tex  
    17           cd .. ; pdflatex source/Tutorial.tex  
      29         @cd .. ; pdflatex source/Tutorial.tex  
      30         @echo "#############################################################################"  
      31         @echo "# Executing again to fix Table of Content...                                #"  
      32         @echo "#############################################################################"  
      33         @cd .. ; pdflatex source/Tutorial.tex  
    18 34  
    19 35 clean:  
    20           rm -f ../*.html  
    21           rm -f ../*.pdf  
    22           rm -f ../*.aux  
    23           rm -f ../*.out  
      36  
      37         @echo "#############################################################################"  
      38         @echo "# make cleanall  ===> To clean everything                                   #"  
      39         @echo "# make cleanlogs ===> To clean *.log, *.aux, etc. but not the .html or .pdf #"  
      40         @echo "#############################################################################"  
      41  
      42  
      43 cleanall: cleanlogs  
      44         @rm -f ../*.pdf  
      45         @rm -f ../*.html  
      46         @echo "#############################################################################"  
      47         @echo "# All logs and documentation removed.                                       #"  
      48         @echo "#############################################################################"  
      49  
      50  
      51 cleanlogs:  
      52         @rm -f ../*.aux  
      53         @rm -f ../*.out  
      54         @rm -f .log *.log  ../*.log  
      55         @echo "#############################################################################"  
      56         @echo "# All logs and aux removed.                                                 #"  
      57         @echo "#############################################################################"  
    24 58  
    25 59