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