Mercurial > dive4elements > gnv-client
annotate doc/config-manual/Makefile @ 1133:cbfe708b9a17
Issue309: Documentation of the installation of the prxy-script
doc/trunk@1243 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Tue, 29 Jun 2010 12:08:30 +0000 |
parents | 975bb59bb136 |
children |
rev | line source |
---|---|
948
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1 # Copyright 2004 Chris Monson (shiblon@gmail.com) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2 # Latest version available at http://www.bouncingchairs.net/oss |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
4 # This file is part of ``Chris Monson's Free Software''. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
5 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
6 # ``Chris Monson's Free Software'' is free software; you can redistribute it |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
7 # and/or modify it under the terms of the GNU General Public License as |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
8 # published by the Free Software Foundation, Version 2. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
9 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
10 # ``Chris Monson's Free Software'' is distributed in the hope that it will |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
11 # be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
13 # Public License for more details. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
14 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
15 # You should have received a copy of the GNU General Public License along |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
16 # with ``Chris Monson's Free Software''; if not, write to the Free Software |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
17 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
18 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
19 # It is also available on the web at http://www.gnu.org/copyleft/gpl.html |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
20 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
21 # Note that using this makefile to build your documents does NOT place them |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
22 # under the GPL unless you, the author, specifically do so. In other words, |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
23 # I, Chris Monson, the copyright holder and author of this makefile, |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
24 # consider it impossible to ``link'' to this makefile in any way covered by |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
25 # the GPL. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
26 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
27 # TO OBTAIN INSTRUCTIONS FOR USING THIS FILE, RUN: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
28 # make help |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
29 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
30 fileinfo := LaTeX Makefile |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
31 author := Chris Monson |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
32 version := 2.2.0-rc1 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
33 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
34 # Note that the user-global version is imported *after* the source directory, |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
35 # so that you can use stuff like ?= to get proper override behavior. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
36 .PHONY: Makefile GNUmakefile Makefile.ini $(HOME)/.latex-makefile/Makefile.ini |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
37 -include Makefile.ini |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
38 -include $(HOME)/.latex-makefile/Makefile.ini |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
39 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
40 # This can be pdflatex or latex - you can change this by adding the following line to your Makefile.ini: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
41 # BUILD_STRATEGY := latex |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
42 BUILD_STRATEGY ?= pdflatex |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
43 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
44 # Sets LC_ALL=C, by default, so that the locale-aware tools, like sort, be |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
45 # # immune to changes to the locale in the user environment. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
46 export LC_ALL ?= C |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
47 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
48 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
49 # If you specify sources here, all other files with the same suffix |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
50 # will be treated as if they were _include_ files. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
51 #onlysources.tex ?= main.tex |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
52 #onlysources.tex.sh ?= |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
53 #onlysources.tex.pl ?= |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
54 #onlysources.tex.py ?= |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
55 #onlysources.rst ?= |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
56 #onlysources.fig ?= |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
57 #onlysources.gpi ?= |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
58 #onlysources.dot ?= |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
59 #onlysources.xvg ?= |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
60 #onlysources.svg ?= |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
61 #onlysources.eps.gz ?= |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
62 #onlysources.eps ?= |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
63 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
64 # If you list files here, they will be treated as _include_ files |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
65 #includes.tex ?= file1.tex file2.tex |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
66 #includes.tex.sh ?= |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
67 #includes.tex.pl ?= |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
68 #includes.tex.py ?= |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
69 #includes.rst ?= |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
70 #includes.fig ?= |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
71 #includes.gpi ?= |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
72 #includes.dot ?= |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
73 #includes.xvg ?= |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
74 #includes.svg ?= |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
75 #includes.eps.gz ?= |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
76 #includes.eps ?= |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
77 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
78 # If you list files or wildcards here, they will *not* be cleaned - default is |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
79 # to allow everything to be cleaned. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
80 #neverclean ?= *.pdf |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
81 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
82 # Alternatively (recommended), you can add those lines to a Makefile.ini file |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
83 # and it will get picked up automatically without your having to edit this |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
84 # Makefile. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
85 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
86 # KNOWN ISSUES: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
87 # * The following occurs: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
88 # file with: \usepackage{named}\bibliographystyle{named} |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
89 # Compile |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
90 # change to: \usepackage{apalike}\bibliographystyle{apalike} |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
91 # Compile again -- BARF! |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
92 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
93 # The workaround: make clean-nographics; make |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
94 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
95 # Note that we may not be able to fix this. LaTeX itself barfs |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
96 # on this, not the makefile. The very first invocation of LaTeX |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
97 # (when something like this has happened) reads the existing .aux |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
98 # file and discovers invalid commands like \citeauthoryear that |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
99 # are only valid in the package that was just removed. It then |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
100 # tries to parse them and explodes. It's not at all clear to me |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
101 # how to fix this. I tried removing the .aux files on the first |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
102 # run of LaTeX, but that necessarily requires more subsequent |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
103 # rebuilds on common edits. There does not appear to be a |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
104 # graceful solution to this issue. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
105 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
106 # CHANGES: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
107 # Chris Monson (2010-04-08): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
108 # * Bumped version to 2.2.0-rc1 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
109 # * Added back in the rst_style_file stuff that got broken when switching |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
110 # rst -> tex to use the script mechanism |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
111 # Chris Monson (2010-03-23): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
112 # * Bumped version to 2.2.0-beta8 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
113 # * Work on issue 76: bad backtick escape for some sed versions, failure |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
114 # to clear out the hold buffer when outputting MISSING comment. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
115 # - Backed out 2>&1 to &> (doesn't work in sh) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
116 # - Backed out using . to source variables |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
117 # Chris Monson (2010-03-22): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
118 # * Bumped version to 2.2.0-beta7 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
119 # * Issue 72: Fix latex/bibtex invocation order for annotated bib styles |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
120 # * Fixed informational output to reflect which LaTeX run we're on |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
121 # * Fixed graphic detection to include graphics that are already there in |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
122 # .d files |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
123 # * Tightened up the .d file output to only make .d depend on graphic |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
124 # *source* files. This means that building foo.d no longer |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
125 # builds all of the graphics files on which foo.tex depends. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
126 # Had to use .SECONDEXPANSION trickery to make it work. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
127 # * Changed get-graphics to only accept a stem. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
128 # * Fixed build-once logic for scripted .tex to work better |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
129 # * Made get-inputs sed script more maintainable. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
130 # * Moved Makefile.ini import up higher. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
131 # * Changed bare stems to not recursively invoke make |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
132 # * Updated diff output to be more silent everywhere |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
133 # * Added a MISSING comment to the .d file if stuff isn't found - forces |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
134 # removal of .1st.make file, which often forces it to try again. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
135 # * Fixed broken graphics-target function |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
136 # * Added sleep to .d file generation when stuff is missing - if it |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
137 # builds too fast, make doesn't realize it needs to be reloaded, |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
138 # and thus never discovers some deeper dependencies (especially |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
139 # evident when graphics are included from scripted include |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
140 # files). |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
141 # Chris Monson (2010-03-17): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
142 # * Bumped version to 2.2.0-beta6 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
143 # * Fixed bareword builds to actually work (requires static patterns) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
144 # * Fixed colorization to work with new paragraph stuff |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
145 # Chris Monson (2010-03-17): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
146 # * Bumped version to 2.2.0-beta5 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
147 # * Fixed graphic detection to be much more focused - splits log file |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
148 # into paragraphs before doing pattern matching. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
149 # * Fixed make foo to work properly (recursively calls make foo.pdf) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
150 # * Fixed gpi -> pdf generation to not waste time building .eps *after* |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
151 # the pdf already exists. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
152 # * Changed log copies to include MAKE_RESTARTS as part of the name. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
153 # * Fixed missing include file detection (also makes use of the paragraph |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
154 # stuff) to detect missing scripted include files. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
155 # Chris Monson (2010-03-16): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
156 # * Bumped version to 2.2.0-beta4 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
157 # * issue 70: .pdf not moved out of the way properly on first |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
158 # compilation, resulting in early error detection failure. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
159 # * issue 74: fixed broken error on missing .aux files: the |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
160 # implementation was masking real errors. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
161 # Chris Monson (2010-03-15): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
162 # * Bumped version to 2.2.0-beta3 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
163 # * issue 71: Made the tput dependency optional |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
164 # * issue 73: Made .tex targets not pull in .d files (building them from |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
165 # scripts should not require a .d) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
166 # * issue 74: Output a much saner error when a .aux file is not produced |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
167 # (e.g., when you are typing "make" without arguments in a |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
168 # directory with included .tex files that are not named with |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
169 # ._include_.) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
170 # Chris Monson (2010-03-11): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
171 # * Bumped version to 2.2.0-beta2 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
172 # * Fixed clean-graphics to get rid of intermediate .eps files that may |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
173 # be hanging around |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
174 # * Added an automatic setting to use eps terminals in pdflatex mode for |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
175 # gnuplot if it doesn't understand pdf. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
176 # * issue 66: Removed grayscale generation via magic suffix. Grayscale |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
177 # generation is now only available via GRAY=1 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
178 # * issue 68: Added explicit handling of LC_ALL for locale-aware tools |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
179 # like "sort" |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
180 # Chris Monson (2010-03-10): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
181 # * Bumped version to 2.2.0-beta1 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
182 # * Fixed success message to handle output message in different places |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
183 # * Added name of produced file to success message |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
184 # Chris Monson (2010-03-10): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
185 # * Bumped version to 2.2.0-alpha3 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
186 # * Added meaningful error message for wrong hyperref options |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
187 # * Added meaningful error message for incorrect graphics extensions |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
188 # Chris Monson (2010-03-09): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
189 # * Bumped version to 2.2.0-alpha2 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
190 # * Updated graphics handling (gnuplot and fig generate pdf natively) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
191 # * Changed xmgrace to output monochrome natively |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
192 # Chris Monson (2010-03-09): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
193 # * Bumped version to 2.2.0-alpha1 - major change! |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
194 # * Support pdflatex natively and by default (issue 6 - a long time coming) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
195 # * Add ability to have a single $HOME/.latex-makefile/Makefile.ini for |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
196 # all invocations |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
197 # * Reworked graphic inclusion detection so that extensions need not be |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
198 # specified for either build strategy (e.g., |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
199 # \includegraphics{test1.eps} -> \includegrahpics{test1}) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
200 # * Changed log format to include filenames and line numbers |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
201 # Chris Monson (2010-02-04): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
202 # * Bumped version to 2.1.43 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
203 # * All of the following are for issue 63 (thanks to mojoh81): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
204 # * Added documentation about fixing Makefile.ini default target |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
205 # * Added perl and python script targets |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
206 # * Fixed run logic to allow included .tex files to be scripted (the |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
207 # run-again logic now detects missing .tex files, and the MV |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
208 # command has been switched out for a command that only invokes |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
209 # MV if the files exist) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
210 # * Changed scripted generation to only run once per make invocation |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
211 # * Added dependency on expr |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
212 # Chris Monson (2010-01-19): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
213 # * Bumped version to 2.1.42 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
214 # * issue 62: Added .brf extension to cleanable files (backrefs) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
215 # Chris Monson (2010-01-07): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
216 # * Bumped version to 2.1.41 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
217 # * issue 60: bad makeindex runs now error out on subsequent tries |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
218 # Chris Monson (2009-12-01): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
219 # * Bumped version to 2.1.40 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
220 # * issue 36: build all indices (for e.g., splitidx usage) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
221 # * issue 59: clean up all generated files (including indices) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
222 # Chris Monson (2009-11-23): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
223 # * Bumped version to 2.1.39 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
224 # * issue 57: change ps2pdf invocations to just use gs directly |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
225 # Chris Monson (2009-11-19): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
226 # * Bumped version to 2.1.38 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
227 # * issue 57: Added some limited support for Cygwin (spaces in filenames) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
228 # Chris Monson (2009-11-15): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
229 # * Bumped version to 2.1.37 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
230 # * Removed svninfo, since this is now managed by mercurial |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
231 # * Fixed typo in changelist |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
232 # * Issue 52: added jpg->eps conversion (thanks to brubakee) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
233 # * Issue 54: fix missing Overfull colorization due to lack of a blank |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
234 # line preceding the first error. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
235 # * Issue 51: remove head.tmp and body.tmp in make clean invocation |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
236 # * Issue 56: maintain multiple versions of log files (for debugging) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
237 # Chris Monson (2009-11-14): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
238 # * Bumped version to 2.1.36 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
239 # * Issues 53 and 49: added .brf, .mtc, and .maf to the cleanables |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
240 # Chris Monson (2009-11-05): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
241 # * Bumped version to 2.1.35 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
242 # * Added nomenclature support (see issue 48) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
243 # Chris Monson (2009-10-29): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
244 # * Bumped version to 2.1.34 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
245 # * Fixed _out_ creation bug introduced in 2.1.33 (it was always created) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
246 # * Fixed erroneous help output for $HOME in BINARY_TARGET_DIR |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
247 # * Changed contact email address - bring on the spam! |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
248 # Chris Monson (2009-10-21): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
249 # * Bumped version to 2.1.33 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
250 # * Fixed issue 46, adding support for dot2tex (thanks to fdemesmay) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
251 # * Made all_files.* settable in Makefile.ini (using ?= instead of :=) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
252 # * Fixed issue 47, thanks to fdemesmay: add binary copy directory, copy |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
253 # dvi, pdf, and ps if it exists |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
254 # Chris Monson (2009-09-25): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
255 # * Bumped version to 2.1.32 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
256 # * Fixed so that a changed lol file will cause a rebuild |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
257 # * Added .lol files to the cleanable list |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
258 # Chris Monson (2009-09-08): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
259 # * Bumped version to 2.1.31 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
260 # * Closed issue 43: evince doesn't notice pdf change w/out touch |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
261 # Chris Monson (2009-08-28): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
262 # * Bumped version to 2.1.30 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
263 # * Closed issue 39: Capture multi-line log warnings/errors to output |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
264 # Chris Monson (2009-08-26): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
265 # * Bumped version to 2.1.29 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
266 # * Closed issue 42: add svg support using inkscape |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
267 # Chris Monson (2009-08-17): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
268 # * Bumped version to 2.1.28 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
269 # * Patch from paul.biggar for issue 38: package warnings are overlooked |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
270 # Chris Monson (2009-08-07): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
271 # * Bumped version to 2.1.27 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
272 # * Included patch for issue 37 - removes pdf/ps files before copying, |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
273 # allowing some broken viewers to see changes properly. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
274 # Chris Monson (2009-05-15): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
275 # * Bumped version to 2.1.26 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
276 # * Included patch for issue 9 from favonia - detects .fig changes for |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
277 # pstex files during regular compilation, so long as the pstex |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
278 # has been built at least once with make all-pstex. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
279 # Chris Monson (2009-03-27): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
280 # * Bumped version to 2.1.25 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
281 # * Cleaned up a bunch of variable setting stuff - more stuff is now |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
282 # settable from Makefile.ini |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
283 # * Cleaned up documentation for various features, especially settable |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
284 # variables. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
285 # * issue 28: support for png -> eps conversion (it even looks good!) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
286 # * issue 29: support for "neverclean" files in Makefile.ini |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
287 # * issue 30: make ps2pdf14 the default - fall back when not there |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
288 # Chris Monson (2009-03-09): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
289 # * Bumped version to 2.1.24 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
290 # * issue 27: xmgrace support (thanks to rolandschulzhd) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
291 # Chris Monson (2008-10-23): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
292 # * Bumped version to 2.1.23 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
293 # * issue 23: fixed _check_programs to not use bash string subs |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
294 # Chris Monson (2008-09-02): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
295 # * Bumped version to 2.1.22 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
296 # * Appled patch from Holger <yllohy@googlemail.com> to add include |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
297 # sources and some documentation updates. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
298 # * Updated backup_patterns to be a bit more aggressive (also thanks to |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
299 # Holger) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
300 # Chris Monson (2008-08-30): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
301 # * Bumped version to 2.1.21 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
302 # * Added ability to specify onlysources.* variables to indicate the only |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
303 # files that should *not* be considered includes. Thanks to Holger |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
304 # <yllohy@googlemail.com> for this patch. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
305 # * Added an automatic include of Makefile.ini if it exists. Allows |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
306 # settings to be made outside of this makefile. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
307 # Chris Monson (2008-05-21): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
308 # * Bumped version to 2.1.20 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
309 # * Added manual pstex compilation support (run make all-pstex first) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
310 # * Removed all automatic pstex support. It was totally breaking |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
311 # everything and is very hard to incorporate into the makefile |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
312 # concept because it requires LaTeX to *fail* before it can |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
313 # determine that it needs the files. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
314 # Chris Monson (2008-04-17): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
315 # * Bumped version to 2.1.19 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
316 # * Changed the pstex build hack to be on by default |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
317 # Chris Monson (2008-04-09): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
318 # * Bumped version to 2.1.18 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
319 # * issue 16: fixed pstex build problems, seems nondeterministic. Added |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
320 # gratuitious hack for testing: set PSTEX_BUILD_ALL_HACK=1. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
321 # Chris Monson (2008-04-09): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
322 # * Bumped version to 2.1.17 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
323 # * issue 20: fixed accumulation of <pid>*.make files - wildcard was |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
324 # refusing to work on files that are very recently created. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
325 # Chris Monson (2008-04-02): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
326 # * Bumped version to 2.1.16 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
327 # * issue 19: Removed the use of "type" to fix broken "echo" settings |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
328 # Chris Monson (2008-03-27): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
329 # * Bumped version to 2.1.15 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
330 # * issue 18: Favors binary echo over builtin, as binary understands -n |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
331 # * issue 16: Fixed handling of missing pstex_t files in the log |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
332 # * issue 9: Added .SECONDARY target for .pstex files |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
333 # Chris Monson (2008-03-21): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
334 # * Bumped version to 2.1.14 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
335 # * Fixed broken aux file flattening, which caused included bibs to be |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
336 # missed. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
337 # Chris Monson (2008-03-20): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
338 # * Bumped version to 2.1.13 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
339 # * Changed error output colorization to show errors for missing files |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
340 # that are not graphics files. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
341 # Chris Monson (2008-03-20): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
342 # * Bumped version to 2.1.12 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
343 # * Fixed a regression introduced in r28 that makes bibtex fail when |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
344 # there is no index file present |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
345 # Chris Monson (2008-03-03): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
346 # * Bumped version to 2.1.11 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
347 # * Fixed issue 11 (handle index files, reported by abachn) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
348 # * Cleaned up some comments and help text |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
349 # Chris Monson (2008-01-24): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
350 # * Bumped version to 2.1.10 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
351 # * Fixed to work when 'sh' is a POSIX shell like 'dash' |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
352 # Chris Monson (2007-12-12): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
353 # * Bumped version to 2.1.9 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
354 # * Fixed documentation and dependency graph for pstex files |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
355 # Chris Monson (2007-12-12): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
356 # * Bumped version to 2.1.8 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
357 # * Added basic pstex_t support for fig files (Issue 9 by favonia) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
358 # I still suggest that psfrag be used instead. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
359 # Chris Monson (2007-10-16): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
360 # * Bumped version to 2.1.7 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
361 # * Removed todo item: allow other comment directives for rst conversion |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
362 # * Added ability to use global rst style file _rststyle_._include_.tex |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
363 # * Added help text to that effect |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
364 # Chris Monson (2007-05-20): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
365 # * Bumped version to 2.1.6 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
366 # * Changed default paper size for rst files |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
367 # * Added todo item: fix paper size for rst files |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
368 # * Added todo item: allow other comment directives for rst conversion |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
369 # Chris Monson (2007-04-02): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
370 # * Bumped version to 2.1.5 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
371 # * Addressed Issue 7, incorrect .gpi.d generation in subdirectories |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
372 # Chris Monson (2007-03-28): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
373 # * Bumped version to 2.1.4 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
374 # * Fixed syntax error in dot output |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
375 # Chris Monson (2007-03-01): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
376 # * Bumped version to 2.1.3 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
377 # * Added reST to the included documentation |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
378 # * Fixed graphics and script generation to be settable in the |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
379 # environment. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
380 # Chris Monson (2007-02-23): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
381 # * Bumped version to 2.1.2 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
382 # * Added the ability to generate .tex files from .rst files |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
383 # Chris Monson (2006-10-17): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
384 # * Bumped version to 2.1.1 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
385 # * Fixed includes from subdirectories (sed-to-sed slash escape problem) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
386 # Chris Monson (2006-10-05): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
387 # * Bumped version to 2.1.0 (pretty serious new feature added) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
388 # * New feature: bib files can now be anywhere on the BIBINPUTS path |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
389 # * New programs: kpsewhich (with tetex) and xargs (BSD) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
390 # Chris Monson (2006-09-28): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
391 # * Bumped version to 2.0.9 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
392 # * Added ability to parse more than one bibliography |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
393 # Chris Monson (2006-06-01): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
394 # * Bumped version to 2.0.8 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
395 # * Added .vrb to the list of cleaned files |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
396 # Chris Monson (2006-04-26): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
397 # * Bumped version to 2.0.7 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
398 # * Fixed so that clean-nographics does not remove .gpi.d files |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
399 # * Removed jpg -> eps hack (not working properly -- just pre-convert) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
400 # * Fixed so that postscript grayscale can be done with BSD sed |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
401 # Chris Monson (2006-04-25): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
402 # * Bumped version to 2.0.6 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
403 # * Fixed so that changed toc, lot, lof, or out causes a rebuild |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
404 # Chris Monson (2006-04-17): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
405 # * Bumped version to 2.0.5 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
406 # * Added jpg -> eps conversion target |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
407 # Chris Monson (2006-04-12): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
408 # * Bumped version to 2.0.4 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
409 # * Fixed BSD sed invocation to not use \| as a branch delimiter |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
410 # * Added a comment section on what is and is not allowed in BSD sed |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
411 # * Made paper size handling more robust while I was at it |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
412 # * Fixed postscript RGB grayscale to use a weighted average |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
413 # * Fixed postscript HSB grayscale to convert to RGB first |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
414 # * Fixed a problem with rebuilding .bbl files |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
415 # Chris Monson (2006-04-11): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
416 # * Bumped version to 2.0.3 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
417 # * Fixed some BSD sed problems: can't use \n in substitutions |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
418 # Chris Monson (2006-04-10): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
419 # * Bumped version to 2.0.2 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
420 # * Once again removed ability to create .tex files from scripts |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
421 # * \includeonly works again |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
422 # Chris Monson (2006-04-09): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
423 # * Bumped version to 2.0.1 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
424 # * Fixed grayscale postscript handling to be more robust |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
425 # * Added ability to generate ._gray_. files from eps and eps.gz |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
426 # * Added ability to clean ._gray_.eps files created from .eps files |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
427 # Chris Monson (2006-04-07): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
428 # * Bumped version to 2.0.0 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
429 # * Removed clunky ability to create included .tex files from scripts |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
430 # * Added note in the help about included tex scripting not working |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
431 # * Fixed the .eps generation to delete %.gpihead.make when finished |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
432 # * Abandoned designs to use shell variables to create sed scripts |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
433 # * Abandoned __default__.tex.sh idea: it causes recursion with %: . |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
434 # * Removed web page to-do. All items are now complete. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
435 # * Added better grayscale conversion for dot figures (direct ps fixup). |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
436 # * Include files can now be scripted (at the expense of \includeonly). |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
437 # * Updated dependency graph to contain better node names. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
438 # Chris Monson (2006-04-06): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
439 # * Bumped version to 2.0b3 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
440 # * Top level includes now fail if there is no rule to build them |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
441 # * A helpful message is printed when they do fail |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
442 # * Grayscale has been changed to be ._gray_, other phonies use _ now, too |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
443 # * Grayscale handling has been completed |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
444 # * Changed _include_stems target to _includes target. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
445 # * Fixed _includes target to be useful by itself. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
446 # * Removed the ability to specify clean and build targets at once |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
447 # * Verified that epsfig works fine with current code |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
448 # * Fixed included scripts so that they are added to the dep files |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
449 # * Fixed so that graphics includes don't happen if they aren't for gpi |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
450 # * Fixed dot output to allow grayscale. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
451 # Chris Monson (2006-04-05): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
452 # * Bumped version to 2.0b2 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
453 # * Removed automatic -gray output. It needs fixing in a bad way. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
454 # * Revamped dependency creation completely. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
455 # * Fixed conditional inclusion to actually work (test.nobuild.d, test.d). |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
456 # * Fixed clean target to remove log targets |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
457 # * Added the 'monochrome' word for gray gpi output |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
458 # * Added a _check_gpi_files target that checks for common problems |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
459 # * Changed the _version target into the version target (no _) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
460 # * Added better handling of grayscale files. Use the .gray.pdf target. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
461 # * Fixed testing for rebuilds |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
462 # Chris Monson (2006-04-04): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
463 # * Bumped version to 2.0b1 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
464 # * Changed colorization of output |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
465 # * Made .auxbbl and .auxtex .make files secondary targets |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
466 # * Shortened and simplified the final latex invocation loop |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
467 # * Added version-specific output ($$i vs. $$$$i) in latex loop |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
468 # * Added a build message for the first .dvi run (Building .dvi (0)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
469 # * Removed some build messages that most people don't care about. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
470 # * Simplified procedure for user-set colors -- simple text specification |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
471 # * Fixed diff output to...not output. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
472 # * Fixed rerun bug -- detect not only when preceded with LaTeX Warning |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
473 # * Sped up gpi plotting |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
474 # * Added error handling and colorized output for gpi failure |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
475 # * Documented color changing stuff. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
476 # * Now sort the flattened aux file to avoid false recompilation needs |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
477 # * Added clean-nographics target |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
478 # * Don't remove self.dvi file if self.aux is missing in the log |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
479 # * Clarified some code. Did some very minor adjusting. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
480 # Chris Monson (2006-04-03): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
481 # * Bumped version to 2.0a7 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
482 # * Added .dvi and .ps files as secondary files. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
483 # * Fixed handling of multiple run detection when includeonly is in use. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
484 # * Added code to flatten .aux files. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
485 # * Added more files as .SECONDARY prerequisites to avoid recompilation. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
486 # * Fixed the inputs generation to be much simpler and to use pipes. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
487 # * Added the dependency graph directly into the makefile. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
488 # * Changed flatten-aux to remove \@writefile \relax \newlabel, etc. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
489 # * Undid pipe changes with sed usage (BSD sed doesn't know -f-). |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
490 # * Added a _check_programs target that tells you what your system has. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
491 # * Fixed an error in colorization that made unnecessary errors appear |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
492 # * Added view targets. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
493 # * Updated help text. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
494 # * Augmented cookies so that .aux can trigger .bbl and .dvi rebuilds |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
495 # * Added more informative error handling for dvips and ps2pdf |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
496 # Chris Monson (2006-04-02): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
497 # * Bumped version to 2.0a6 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
498 # * Added indirection to .bbl dependencies to avoid rebuilding .bbl files |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
499 # * Streamlined the diff invocation to eliminate an existence test |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
500 # * Removed special shell quote escape variables |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
501 # * Moved includes to a more prominent location |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
502 # * Fixed .inputs.make to not contain .aux files |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
503 # * Fixed embedding to use a file instead of always grepping. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
504 # * Added *.make.temp to the list of cleanable files |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
505 # * Fixed Ruby. It should now be supported properly. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
506 # * Now differentiate between all, default, and buildable files. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
507 # * Fixed to bail out on serious errors. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
508 # * Revised the handling of includable files. Still working on it. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
509 # Chris Monson (2006-03-31): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
510 # * Bumped version to 2.0a5 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
511 # * Fixed a bug with LaTeX error detection (there can be spaces) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
512 # * Added .bbl support, simplifying everything and making it more correct |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
513 # * Refactored some tests that muddy the code |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
514 # * Did a little cleanup of some shell loops that can safely be make loops |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
515 # * Added support for graphviz .dot files |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
516 # * Made _all_programs output easier to read |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
517 # * Added the ruby support that has long been advertised |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
518 # * Font embedding was screwed up for PostScript -- now implicit |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
519 # * Changed the generation of -gray.gpi files to a single command |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
520 # * Changed any make-generated file that is not included from .d to .make |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
521 # Chris Monson (2006-03-30): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
522 # * Bumped version to 2.0a4 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
523 # * Fixed a bug with very long graphics file names |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
524 # * Added a todo entry for epsfig support |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
525 # * Fixed a bug paper size bug: sometimes more than one entry appears |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
526 # * Fixed DVI build echoing to display the number instead of process ID |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
527 # * DVI files are now removed on first invocation if ANY file is missing |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
528 # * Added a simple grayscale approach: if a file ends with -gray.gpi, it |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
529 # is created from the corresponding .gpi file with a special |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
530 # comment ##GRAY in its header, which causes coloring to be |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
531 # turned off. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
532 # * Fixed a bug in the handling of .tex.sh files. For some reason I had |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
533 # neglected to define file stems for scripted output. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
534 # * Removed a trailing ; from the %.graphics dependencies |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
535 # * Added dvips embedding (I think it works, anyway) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
536 # Chris Monson (2006-03-29): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
537 # * Bumped version to 2.0a3 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
538 # * Fixed error in make 3.79 with MAKEFILE_LIST usage |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
539 # * Added the presumed filename to the _version output |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
540 # * Added a vim macro for converting sed scripts to make commands |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
541 # * Added gpi dependency support (plotting external files and loading gpi) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
542 # * Allow .gpi files to be ignored if called .include.gpi or .nobuild.gpi |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
543 # * Fixed sed invocations where \+ was used. BSD sed uses \{1,\}. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
544 # Chris Monson (2006-03-28): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
545 # * Bumped version to 2.0a2 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
546 # * Added SHELL_DEBUG and VERBOSE options |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
547 # * Changed the default shell back to /bin/sh (unset, in other words) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
548 # * Moved .PHONY declarations closer to their targets |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
549 # * Moved help text into its own define block to obtain better formatting |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
550 # * Removed need for double-entry when adding a new program invocation |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
551 # * Moved .SECONDARY declaration closer to its relevant occurrence |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
552 # * Commented things more heavily |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
553 # * Added help text about setting terminal and output in gnuplot |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
554 # * Created more fine-grained clean targets |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
555 # * Added a %.graphics target that generates all of %'s graphics |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
556 # * Killed backward-compatible graphics generation (e.g., eps.gpi=gpi.eps) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
557 # * For now, we're just GPL 2, not 3. Maybe it will change later |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
558 # * Made the version and svninfo into variables |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
559 # Chris Monson (2006-03-27): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
560 # * Bumped version to 2.0a1 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
561 # * Huge, sweeping changes -- automatic dependencies |
905
0a86b992ab1f
Integrated Structure and basic File for LaTex-Documents for the Config-Manual
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
562 |
948
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
563 # IMPORTANT! |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
564 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
565 # When adding to the following list, do not introduce any blank lines. The |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
566 # list is extracted for documentation using sed and is terminated by a blank |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
567 # line. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
568 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
569 # EXTERNAL PROGRAMS: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
570 # = ESSENTIAL PROGRAMS = |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
571 # == Basic Shell Utilities == |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
572 CAT ?= cat |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
573 CP ?= cp -f |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
574 DIFF ?= diff |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
575 ECHO ?= echo |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
576 EGREP ?= egrep |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
577 ENV ?= env |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
578 EXPR ?= expr |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
579 MV ?= mv -f |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
580 SED ?= sed |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
581 SORT ?= sort |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
582 TOUCH ?= touch |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
583 UNIQ ?= uniq |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
584 WHICH ?= which |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
585 XARGS ?= xargs |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
586 SLEEP ?= sleep |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
587 # == LaTeX (tetex-provided) == |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
588 BIBTEX ?= bibtex |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
589 DVIPS ?= dvips |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
590 LATEX ?= latex |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
591 PDFLATEX ?= pdflatex |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
592 EPSTOPDF ?= epstopdf |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
593 MAKEINDEX ?= makeindex |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
594 KPSEWHICH ?= kpsewhich |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
595 GS ?= gs |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
596 # = OPTIONAL PROGRAMS = |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
597 # == Makefile Color Output == |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
598 TPUT ?= tput |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
599 # == TeX Generation == |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
600 PERL ?= perl |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
601 PYTHON ?= python |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
602 RST2LATEX ?= rst2latex.py |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
603 # == EPS Generation == |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
604 CONVERT ?= convert # ImageMagick |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
605 DOT ?= dot # GraphViz |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
606 DOT2TEX ?= dot2tex # dot2tex - add options (not -o) as needed |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
607 FIG2DEV ?= fig2dev # XFig |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
608 GNUPLOT ?= gnuplot # GNUplot |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
609 INKSCAPE ?= inkscape # Inkscape (svg support) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
610 XMGRACE ?= xmgrace # XMgrace |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
611 PNGTOPNM ?= pngtopnm # From NetPBM - step 1 for png -> eps |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
612 PPMTOPGM ?= ppmtopgm # From NetPBM - (gray) step 2 for png -> eps |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
613 PNMTOPS ?= pnmtops # From NetPBM - step 3 for png -> eps |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
614 GUNZIP ?= gunzip # GZipped EPS |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
615 # == Beamer Enlarged Output == |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
616 PSNUP ?= psnup |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
617 # == Viewing Stuff == |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
618 VIEW_POSTSCRIPT ?= gv |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
619 VIEW_PDF ?= xpdf |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
620 VIEW_GRAPHICS ?= display |
905
0a86b992ab1f
Integrated Structure and basic File for LaTex-Documents for the Config-Manual
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
621 |
948
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
622 # Command options for embedding fonts and postscript->pdf conversion |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
623 PS_EMBED_OPTIONS ?= -dPDFSETTINGS=/printer -dEmbedAllFonts=true -dSubsetFonts=true -dMaxSubsetPct=100 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
624 PS_COMPATIBILITY ?= 1.4 |
905
0a86b992ab1f
Integrated Structure and basic File for LaTex-Documents for the Config-Manual
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
625 |
948
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
626 # Defaults for GPI |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
627 DEFAULT_GPI_EPS_FONTSIZE ?= 22 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
628 DEFAULT_GPI_PDF_FONTSIZE ?= 12 |
905
0a86b992ab1f
Integrated Structure and basic File for LaTex-Documents for the Config-Manual
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
629 |
948
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
630 # Style file for ReST |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
631 RST_STYLE_FILE ?= $(wildcard _rststyle_._include_.tex) |
905
0a86b992ab1f
Integrated Structure and basic File for LaTex-Documents for the Config-Manual
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
632 |
948
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
633 # This ensures that even when echo is a shell builtin, we still use the binary |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
634 # (the builtin doesn't always understand -n) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
635 FIXED_ECHO := $(if $(findstring -n,$(shell $(ECHO) -n)),$(shell which echo),$(ECHO)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
636 ECHO := $(if $(FIXED_ECHO),$(FIXED_ECHO),$(ECHO)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
637 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
638 define determine-gnuplot-output-extension |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
639 $(if $(shell $(WHICH) $(GNUPLOT)), |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
640 $(if $(findstring unknown or ambiguous, $(shell $(GNUPLOT) -e "set terminal pdf" 2>&1)), |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
641 eps, pdf), |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
642 none) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
643 endef |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
644 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
645 GNUPLOT_OUTPUT_EXTENSION ?= $(strip $(call determine-gnuplot-output-extension)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
646 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
647 # Directory into which we place "binaries" if it exists. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
648 # Note that this can be changed on the commandline or in Makefile.ini: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
649 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
650 # Command line: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
651 # make BINARY_TARGET_DIR=$HOME/pdfs myfile.pdf |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
652 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
653 # Also, you can specify a relative directory (relative to the Makefile): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
654 # make BINARY_TARGET_DIR=pdfs myfile.pdf |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
655 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
656 # Or, you can use Makefile.ini: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
657 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
658 # BINARY_TARGET_DIR := $(HOME)/bin_out |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
659 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
660 BINARY_TARGET_DIR ?= _out_ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
661 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
662 RESTARTS := $(if $(MAKE_RESTARTS),$(MAKE_RESTARTS),0) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
663 # SH NOTES |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
664 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
665 # On some systems, /bin/sh, which is the default shell, is not linked to |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
666 # /bin/bash. While bash is supposed to be sh-compatible when invoked as sh, it |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
667 # just isn't. This section details some of the things you have to stay away |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
668 # from to remain sh-compatible. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
669 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
670 # * File pattern expansion does not work for {} |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
671 # * [ "$x" = "$y" ] has to be [ x"$x" x"$y" ] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
672 # * &> for stderr redirection doesn't work, use 2>&1 instead |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
673 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
674 # BSD SED NOTES |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
675 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
676 # BSD SED is not very nice compared to GNU sed, but it is the most |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
677 # commonly-invoked sed on Macs (being based on BSD), so we have to cater to |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
678 # it or require people to install GNU sed. It seems like the GNU |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
679 # requirement isn't too bad since this makefile is really a GNU makefile, |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
680 # but apparently GNU sed is much less common than GNU make in general, so |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
681 # I'm supporting it here. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
682 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
683 # Sad experience has taught me the following about BSD sed: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
684 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
685 # * \+ is not understood to mean \{1,\} |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
686 # * \| is meaningless (does not branch) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
687 # * \n cannot be used as a substitution character |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
688 # * ? does not mean \{0,1\}, but is literal |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
689 # * a\ works, but only reliably for a single line if subsequent lines |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
690 # have forward slashes in them (as is the case in postscript) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
691 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
692 # For more info (on the Mac) you can consult |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
693 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
694 # man -M /usr/share/man re_format |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
695 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
696 # And look for the word "Obsolete" near the bottom. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
697 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
698 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
699 # EXTERNAL PROGRAM DOCUMENTATION SCRIPT |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
700 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
701 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
702 # $(call output-all-programs,[<output file>]) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
703 define output-all-programs |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
704 [ -f '$(this_file)' ] && \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
705 $(SED) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
706 -e '/^[[:space:]]*#[[:space:]]*EXTERNAL PROGRAMS:/,/^$$/!d' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
707 -e '/EXTERNAL PROGRAMS/d' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
708 -e '/^$$/d' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
709 -e '/^[[:space:]]*#/i\ '\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
710 -e 's/^[[:space:]]*#[[:space:]][^=]*//' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
711 $(this_file) $(if $1,> '$1',) || \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
712 $(ECHO) "Cannot determine the name of this makefile." |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
713 endef |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
714 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
715 # If they misspell gray, it should still work. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
716 GRAY ?= $(call get-default,$(GREY),) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
717 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
718 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
719 # Utility Functions and Definitions |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
720 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
721 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
722 # While not exactly a make function, this vim macro is useful. It takes a |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
723 # verbatim sed script and converts each line to something suitable in a command |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
724 # context. Just paste the script's contents into the editor, yank this into a |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
725 # register (starting at '0') and run the macro once for each line of the |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
726 # original script: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
727 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
728 # 0i -e :s/\$/$$/eg |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
729 :s/'/'"'"'/eg |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
730 ^Ela'A' \:noh |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
731 j |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
732 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
733 # don't call this directly - it is here to avoid calling wildcard more than |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
734 # once in remove-files. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
735 remove-files-helper = $(if $1,$(RM) $1,$(sh_true)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
736 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
737 # $(call remove-files,file1 file2) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
738 remove-files = $(call remove-files-helper,$(wildcard $1)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
739 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
740 # Removes all cleanable files in the given list |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
741 # $(call clean-files,file1 file2 file3 ...) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
742 # Works exactly like remove-files, but filters out files in $(neverclean) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
743 clean-files = \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
744 $(call remove-files-helper,$(call cleanable-files,$(wildcard $1))) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
745 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
746 # Outputs all generated files to STDOUT, along with some others that are |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
747 # created by these (e.g., .idx files end up producing .ilg and .ind files). |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
748 # Discovered by reading *.fls OUTPUT lines and producing corresponding .ind |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
749 # filenames as needed. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
750 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
751 # $(call get-generated-names,<source recorder file (*.fls)>) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
752 define get-generated-names |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
753 [ -f '$1' ] && \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
754 $(SED) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
755 -e '/^OUTPUT /{' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
756 -e ' s///' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
757 -e ' p' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
758 -e ' s/\.idx/\.ind/p' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
759 -e ' s/\.ind/\.ilg/p' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
760 -e '}' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
761 -e 'd' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
762 '$1' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
763 | $(SORT) | $(UNIQ) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
764 endef |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
765 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
766 # This removes files without checking whether they are there or not. This |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
767 # sometimes has to be used when the file is created by a series of shell |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
768 # commands, but there ends up being a race condition: make doesn't know about |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
769 # the file generation as quickly as the system does, so $(wildcard ...) doesn't |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
770 # work right. Blech. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
771 # $(call remove-temporary-files,filenames) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
772 remove-temporary-files = $(if $1,$(RM) $1,:) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
773 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
774 # Create an identifier from a file name |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
775 # $(call cleanse-filename,filename) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
776 cleanse-filename = $(subst .,_,$(subst /,__,$1)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
777 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
778 # Escape dots |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
779 # $(call escape-dots,str) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
780 escape-dots = $(subst .,\\.,$1) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
781 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
782 # Test that a file exists |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
783 # $(call test-exists,file) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
784 test-exists = [ -e '$1' ] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
785 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
786 # $(call move-files,source,destination) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
787 move-if-exists = $(call test-exists,$1) && $(MV) '$1' '$2' |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
788 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
789 # Copy file1 to file2 only if file2 doesn't exist or they are different |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
790 # $(call copy-if-different,sfile,dfile) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
791 copy-if-different = $(call test-different,$1,$2) && $(CP) '$1' '$2' |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
792 copy-if-exists = $(call test-exists,$1) && $(CP) '$1' '$2' |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
793 move-if-different = $(call test-different,$1,$2) && $(MV) '$1' '$2' |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
794 replace-if-different-and-remove = \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
795 $(call test-different,$1,$2) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
796 && $(MV) '$1' '$2' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
797 || $(call remove-files,'$1') |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
798 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
799 # Note that $(DIFF) returns success when the files are the SAME.... |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
800 # $(call test-different,sfile,dfile) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
801 test-different = ! $(DIFF) -q '$1' '$2' >/dev/null 2>&1 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
802 test-exists-and-different = \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
803 $(call test-exists,$2) && $(call test-different,$1,$2) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
804 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
805 # Return value 1, or value 2 if value 1 is empty |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
806 # $(call get-default,<possibly empty arg>,<default value if empty>) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
807 get-default = $(if $1,$1,$2) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
808 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
809 # Copy a file and log what's going on |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
810 # $(call copy-with-logging,<source>,<target>) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
811 define copy-with-logging |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
812 if [ -d '$2/' ]; then \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
813 if $(CP) '$1' '$2/'; then \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
814 $(ECHO) "$(C_INFO)Copied '$1' to '$2/'$(C_RESET)"; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
815 else \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
816 $(ECHO) "$(C_ERROR)Failed to copy '$1' to '$2/'$(C_RESET)"; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
817 fi; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
818 fi |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
819 endef |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
820 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
821 # Gives a reassuring message about the failure to find include files |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
822 # $(call include-message,<list of include files>) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
823 define include-message |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
824 $(strip \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
825 $(if $(filter-out $(wildcard $1),$1),\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
826 $(shell $(ECHO) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
827 "$(C_INFO)NOTE: You may ignore warnings about the"\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
828 "following files:" >&2;\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
829 $(ECHO) >&2; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
830 $(foreach s,$(filter-out $(wildcard $1),$1),$(ECHO) ' $s' >&2;)\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
831 $(ECHO) "$(C_RESET)" >&2) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
832 )) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
833 endef |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
834 # Characters that are hard to specify in certain places |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
835 space := $(empty) $(empty) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
836 colon := \: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
837 comma := , |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
838 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
839 # Useful shell definitions |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
840 sh_true := : |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
841 sh_false := ! : |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
842 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
843 # Clear out the standard interfering make suffixes |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
844 .SUFFIXES: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
845 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
846 # Turn off forceful rm (RM is usually mapped to rm -f) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
847 ifdef SAFE_RM |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
848 RM := rm |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
849 endif |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
850 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
851 # Turn command echoing back on with VERBOSE=1 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
852 ifndef VERBOSE |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
853 QUIET := @ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
854 endif |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
855 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
856 # Turn on shell debugging with SHELL_DEBUG=1 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
857 # (EVERYTHING is echoed, even $(shell ...) invocations) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
858 ifdef SHELL_DEBUG |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
859 SHELL += -x |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
860 endif |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
861 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
862 # Get the name of this makefile (always right in 3.80, often right in 3.79) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
863 # This is only really used for documentation, so it isn't too serious. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
864 ifdef MAKEFILE_LIST |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
865 this_file := $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
866 else |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
867 this_file := $(wildcard GNUmakefile makefile Makefile) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
868 endif |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
869 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
870 # Terminal color definitions |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
871 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
872 REAL_TPUT := $(if $(NO_COLOR),,$(shell $(WHICH) $(TPUT))) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
873 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
874 # $(call get-term-code,codeinfo) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
875 # e.g., |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
876 # $(call get-term-code,setaf 0) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
877 get-term-code = $(if $(REAL_TPUT),$(shell $(REAL_TPUT) $1),) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
878 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
879 black := $(call get-term-code,setaf 0) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
880 red := $(call get-term-code,setaf 1) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
881 green := $(call get-term-code,setaf 2) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
882 yellow := $(call get-term-code,setaf 3) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
883 blue := $(call get-term-code,setaf 4) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
884 magenta := $(call get-term-code,setaf 5) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
885 cyan := $(call get-term-code,setaf 6) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
886 white := $(call get-term-code,setaf 7) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
887 bold := $(call get-term-code,bold) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
888 uline := $(call get-term-code,smul) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
889 reset := $(call get-term-code,sgr0) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
890 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
891 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
892 # User-settable definitions |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
893 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
894 LATEX_COLOR_WARNING ?= magenta |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
895 LATEX_COLOR_ERROR ?= red |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
896 LATEX_COLOR_INFO ?= green |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
897 LATEX_COLOR_UNDERFULL ?= magenta |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
898 LATEX_COLOR_OVERFULL ?= red bold |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
899 LATEX_COLOR_PAGES ?= bold |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
900 LATEX_COLOR_BUILD ?= cyan |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
901 LATEX_COLOR_GRAPHIC ?= yellow |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
902 LATEX_COLOR_DEP ?= green |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
903 LATEX_COLOR_SUCCESS ?= green bold |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
904 LATEX_COLOR_FAILURE ?= red bold |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
905 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
906 # Gets the real color from a simple textual definition like those above |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
907 # $(call get-color,ALL_CAPS_COLOR_NAME) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
908 # e.g., $(call get-color,WARNING) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
909 get-color = $(subst $(space),,$(foreach c,$(LATEX_COLOR_$1),$($c))) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
910 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
911 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
912 # STANDARD COLORS |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
913 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
914 C_WARNING := $(call get-color,WARNING) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
915 C_ERROR := $(call get-color,ERROR) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
916 C_INFO := $(call get-color,INFO) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
917 C_UNDERFULL := $(call get-color,UNDERFULL) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
918 C_OVERFULL := $(call get-color,OVERFULL) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
919 C_PAGES := $(call get-color,PAGES) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
920 C_BUILD := $(call get-color,BUILD) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
921 C_GRAPHIC := $(call get-color,GRAPHIC) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
922 C_DEP := $(call get-color,DEP) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
923 C_SUCCESS := $(call get-color,SUCCESS) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
924 C_FAILURE := $(call get-color,FAILURE) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
925 C_RESET := $(reset) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
926 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
927 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
928 # PRE-BUILD TESTS |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
929 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
930 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
931 # Check that clean targets are not combined with other targets (weird things |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
932 # happen, and it's not easy to fix them) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
933 hascleangoals := $(if $(sort $(filter clean clean-%,$(MAKECMDGOALS))),1) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
934 hasbuildgoals := $(if $(sort $(filter-out clean clean-%,$(MAKECMDGOALS))),1) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
935 ifneq "$(hasbuildgoals)" "" |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
936 ifneq "$(hascleangoals)" "" |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
937 $(error $(C_ERROR)Clean and build targets specified together$(C_RESET))) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
938 endif |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
939 endif |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
940 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
941 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
942 # VARIABLE DECLARATIONS |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
943 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
944 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
945 # Names of sed scripts that morph gnuplot files -- only the first found is used |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
946 GNUPLOT_SED := global-gpi.sed gnuplot.sed |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
947 GNUPLOT_GLOBAL := global._include_.gpi gnuplot.global |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
948 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
949 ifneq "$(strip $(BUILD_STRATEGY))" "pdflatex" |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
950 default_graphic_extension ?= eps |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
951 latex_build_program ?= $(LATEX) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
952 build_target_extension ?= dvi |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
953 hyperref_driver_pattern ?= hdvips |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
954 hyperref_driver_error ?= Using dvips: specify ps2pdf in the hyperref options. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
955 else |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
956 default_graphic_extension ?= pdf |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
957 latex_build_program ?= $(PDFLATEX) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
958 build_target_extension ?= pdf |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
959 hyperref_driver_pattern ?= hpdf.* |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
960 hyperref_driver_error ?= Using pdflatex: specify pdftex in the hyperref options (or leave it blank). |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
961 endif |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
962 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
963 # Files of interest |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
964 all_files.tex ?= $(wildcard *.tex) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
965 all_files.tex.sh ?= $(wildcard *.tex.sh) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
966 all_files.tex.pl ?= $(wildcard *.tex.pl) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
967 all_files.tex.py ?= $(wildcard *.tex.py) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
968 all_files.rst ?= $(wildcard *.rst) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
969 all_files.fig ?= $(wildcard *.fig) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
970 all_files.gpi ?= $(wildcard *.gpi) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
971 all_files.dot ?= $(wildcard *.dot) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
972 all_files.xvg ?= $(wildcard *.xvg) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
973 all_files.svg ?= $(wildcard *.svg) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
974 all_files.png ?= $(wildcard *.png) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
975 all_files.jpg ?= $(wildcard *.jpg) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
976 all_files.eps.gz ?= $(wildcard *.eps.gz) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
977 all_files.eps ?= $(wildcard *.eps) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
978 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
979 # Utility function for obtaining all files not specified in $(neverclean) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
980 # $(call cleanable-files,file1 file2 file3 ...) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
981 # Returns the list of files that is not in $(wildcard $(neverclean)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
982 cleanable-files = $(filter-out $(wildcard $(neverclean)), $1) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
983 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
984 # Utility function for getting all .$1 files that are to be ignored |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
985 # * files listed in $(includes.$1) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
986 # * files not listed in $(onlysources.$1) if it is defined |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
987 ignore_files = \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
988 $(includes.$1) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
989 $(if $(onlysources.$1),$(filter-out $(onlysources.$1), $(all_files.$1))) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
990 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
991 # Patterns to never be allowed as source targets |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
992 ignore_patterns := %._include_ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
993 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
994 # Patterns allowed as source targets but not included in 'all' builds |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
995 nodefault_patterns := %._nobuild_ $(ignore_patterns) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
996 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
997 # Utility function for getting targets suitable building |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
998 # $(call filter-buildable,suffix) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
999 filter-buildable = \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1000 $(filter-out $(call ignore_files,$1) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1001 $(addsuffix .$1,$(ignore_patterns)),$(all_files.$1)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1002 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1003 # Utility function for getting targets suitable for 'all' builds |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1004 # $(call filter-default,suffix) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1005 filter-default = \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1006 $(filter-out $(call ignore_files,$1) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1007 $(addsuffix .$1,$(nodefault_patterns)),$(all_files.$1)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1008 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1009 # Top level sources that can be built even when they are not by default |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1010 files.tex := $(call filter-buildable,tex) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1011 files.tex.sh := $(call filter-buildable,tex.sh) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1012 files.tex.pl := $(call filter-buildable,tex.pl) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1013 files.tex.py := $(call filter-buildable,tex.py) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1014 files.rst := $(call filter-buildable,rst) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1015 files.gpi := $(call filter-buildable,gpi) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1016 files.dot := $(call filter-buildable,dot) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1017 files.fig := $(call filter-buildable,fig) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1018 files.xvg := $(call filter-buildable,xvg) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1019 files.svg := $(call filter-buildable,svg) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1020 files.png := $(call filter-buildable,png) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1021 files.jpg := $(call filter-buildable,jpg) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1022 files.eps.gz := $(call filter-buildable,eps.gz) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1023 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1024 # Make all pstex targets secondary. The pstex_t target requires the pstex |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1025 # target, and nothing else really depends on it, so it often gets deleted. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1026 # This avoids that by allowing *all* fig files to be pstex targets, which is |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1027 # perfectly valid and causes no problems even if they're going to become eps |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1028 # files in the end. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1029 .SECONDARY: $(patsubst %.fig,%.pstex,$(files.fig)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1030 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1031 # Top level sources that are built by default targets |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1032 default_files.tex := $(call filter-default,tex) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1033 default_files.tex.sh := $(call filter-default,tex.sh) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1034 default_files.tex.pl := $(call filter-default,tex.pl) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1035 default_files.tex.py := $(call filter-default,tex.py) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1036 default_files.rst := $(call filter-default,rst) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1037 default_files.gpi := $(call filter-default,gpi) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1038 default_files.dot := $(call filter-default,dot) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1039 default_files.fig := $(call filter-default,fig) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1040 default_files.xvg := $(call filter-default,xvg) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1041 default_files.svg := $(call filter-default,svg) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1042 default_files.png := $(call filter-default,png) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1043 default_files.jpg := $(call filter-default,jpg) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1044 default_files.eps.gz := $(call filter-default,eps.gz) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1045 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1046 # Utility function for creating larger lists of files |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1047 # $(call concat-files,suffixes,[prefix]) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1048 concat-files = $(foreach s,$1,$($(if $2,$2_,)files.$s)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1049 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1050 # Useful file groupings |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1051 all_files_source := $(call concat-files,tex,all) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1052 all_files_scripts := $(call concat-files,tex.sh tex.pl tex.py rst,all) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1053 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1054 .PHONY: $(all_files_scripts) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1055 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1056 default_files_source := $(call concat-files,tex,default) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1057 default_files_scripts := $(call concat-files,tex.sh tex.pl tex.py rst,default) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1058 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1059 files_source := $(call concat-files,tex) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1060 files_scripts := $(call concat-files,tex.sh tex.pl tex.py rst) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1061 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1062 # Utility function for obtaining stems |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1063 # $(call get-stems,suffix,[prefix]) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1064 get-stems = $(sort $($(if $2,$2_,)files.$1:%.$1=%)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1065 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1066 # List of all stems (including ._include_ and ._nobuild_ file stems) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1067 all_stems.tex := $(call get-stems,tex,all) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1068 all_stems.tex.sh := $(call get-stems,tex.sh,all) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1069 all_stems.tex.pl := $(call get-stems,tex.pl,all) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1070 all_stems.tex.py := $(call get-stems,tex.py,all) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1071 all_stems.rst := $(call get-stems,rst,all) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1072 all_stems.fig := $(call get-stems,fig,all) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1073 all_stems.gpi := $(call get-stems,gpi,all) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1074 all_stems.dot := $(call get-stems,dot,all) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1075 all_stems.xvg := $(call get-stems,xvg,all) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1076 all_stems.svg := $(call get-stems,svg,all) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1077 all_stems.png := $(call get-stems,png,all) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1078 all_stems.jpg := $(call get-stems,jpg,all) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1079 all_stems.eps.gz := $(call get-stems,eps.gz,all) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1080 all_stems.eps := $(call get-stems,eps,all) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1081 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1082 # List of all default stems (all default PDF targets): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1083 default_stems.tex := $(call get-stems,tex,default) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1084 default_stems.tex.sh := $(call get-stems,tex.sh,default) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1085 default_stems.tex.pl := $(call get-stems,tex.pl,default) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1086 default_stems.tex.py := $(call get-stems,tex.py,default) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1087 default_stems.rst := $(call get-stems,rst,default) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1088 default_stems.fig := $(call get-stems,fig,default) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1089 default_stems.gpi := $(call get-stems,gpi,default) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1090 default_stems.dot := $(call get-stems,dot,default) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1091 default_stems.xvg := $(call get-stems,xvg,default) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1092 default_stems.svg := $(call get-stems,svg,default) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1093 default_stems.png := $(call get-stems,png,default) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1094 default_stems.jpg := $(call get-stems,jpg,default) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1095 default_stems.eps.gz := $(call get-stems,eps.gz,default) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1096 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1097 # List of all stems (all possible bare PDF targets created here): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1098 stems.tex := $(call get-stems,tex) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1099 stems.tex.sh := $(call get-stems,tex.sh) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1100 stems.tex.pl := $(call get-stems,tex.pl) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1101 stems.tex.py := $(call get-stems,tex.py) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1102 stems.rst := $(call get-stems,rst) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1103 stems.fig := $(call get-stems,fig) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1104 stems.gpi := $(call get-stems,gpi) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1105 stems.dot := $(call get-stems,dot) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1106 stems.xvg := $(call get-stems,xvg) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1107 stems.svg := $(call get-stems,svg) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1108 stems.png := $(call get-stems,png) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1109 stems.jpg := $(call get-stems,jpg) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1110 stems.eps.gz := $(call get-stems,eps.gz) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1111 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1112 # Utility function for creating larger lists of stems |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1113 # $(call concat-stems,suffixes,[prefix]) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1114 concat-stems = $(sort $(foreach s,$1,$($(if $2,$2_,)stems.$s))) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1115 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1116 # The most likely to be source but not finished product go first |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1117 graphic_source_extensions := fig \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1118 gpi \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1119 xvg \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1120 svg \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1121 dot \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1122 eps.gz |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1123 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1124 ifneq "$(strip $(BUILD_STRATEGY))" "pdflatex" |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1125 graphic_source_extensions += png jpg |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1126 graphic_target_extensions := eps ps |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1127 else |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1128 graphic_source_extensions += eps |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1129 graphic_target_extensions := pdf png jpg mps tif |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1130 endif |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1131 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1132 all_stems_source := $(call concat-stems,tex,all) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1133 all_stems_script := $(call concat-stems,tex.sh tex.pl tex.py rst,all) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1134 all_stems_graphic := $(call concat-stems,$(graphic_source_extensions),all) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1135 all_stems_ss := $(sort $(all_stems_source) $(all_stems_script)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1136 all_stems_sg := $(sort $(all_stems_script)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1137 all_stems_ssg := $(sort $(all_stems_ss)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1138 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1139 default_stems_source := $(call concat-stems,tex,default) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1140 default_stems_script := $(call concat-stems,tex.sh tex.pl tex.py rst,default) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1141 default_stems_ss := $(sort $(default_stems_source) $(default_stems_script)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1142 default_stems_sg := $(sort $(default_stems_script)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1143 default_stems_ssg := $(sort $(default_stems_ss)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1144 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1145 stems_source := $(call concat-stems,tex) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1146 stems_script := $(call concat-stems,tex.sh tex.pl tex.py rst) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1147 stems_graphic := $(call concat-stems,$(graphic_source_extensions)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1148 stems_gg := $(sort $(stems_graphic)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1149 stems_ss := $(sort $(stems_source) $(stems_script)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1150 stems_sg := $(sort $(stems_script)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1151 stems_ssg := $(sort $(stems_ss)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1152 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1153 # Calculate names that can generate the need for an include file. We can't |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1154 # really do this with patterns because it's too easy to screw up, so we create |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1155 # an exhaustive list. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1156 allowed_source_suffixes := \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1157 pdf \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1158 ps \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1159 dvi \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1160 ind \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1161 nls \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1162 bbl \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1163 aux \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1164 aux.make \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1165 d \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1166 auxbbl.make \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1167 _graphics \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1168 _show |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1169 allowed_source_patterns := $(addprefix %.,$(allowed_source_suffixes)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1170 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1171 allowed_graphic_suffixes := \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1172 pdf \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1173 eps \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1174 gpihead.make \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1175 gpi.d |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1176 allowed_graphic_patterns := $(addprefix %.,$(allowed_graphic_suffixes)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1177 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1178 # All targets allowed to build documents |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1179 allowed_source_targets := \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1180 $(foreach suff,$(allowed_source_suffixes),\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1181 $(addsuffix .$(suff),$(stems_ssg))) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1182 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1183 # All targets allowed to build graphics |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1184 allowed_graphic_targets := \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1185 $(foreach suff,$(allowed_graphic_suffixes),\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1186 $(addsuffix .$(suff),$(stems_gg))) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1187 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1188 # All targets that build multiple documents (like 'all') |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1189 allowed_batch_source_targets := \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1190 all \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1191 all-pdf \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1192 all-ps \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1193 all-dvi \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1194 all-bbl \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1195 all-ind \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1196 all-gls \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1197 all-nls \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1198 show |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1199 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1200 # All targets that build multiple graphics (independent of document) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1201 allowed_batch_graphic_targets := \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1202 all-graphics \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1203 all-pstex \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1204 all-dot2tex \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1205 show-graphics |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1206 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1207 # Now we figure out which stuff is available as a make target for THIS RUN. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1208 real_goals := $(call get-default,$(filter-out _includes,$(MAKECMDGOALS)),\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1209 all) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1210 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1211 specified_source_targets := $(strip \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1212 $(filter $(allowed_source_targets) $(stems_ssg),$(real_goals)) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1213 ) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1214 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1215 specified_batch_source_targets := $(strip \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1216 $(filter $(allowed_batch_source_targets),$(real_goals)) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1217 ) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1218 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1219 specified_graphic_targets := $(strip \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1220 $(filter $(allowed_graphic_targets),$(real_goals)) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1221 ) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1222 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1223 specified_batch_graphic_targets := $(strip \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1224 $(filter $(allowed_batch_graphic_targets),$(real_goals)) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1225 ) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1226 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1227 specified_gpi_targets := $(patsubst %.gpi,%.$(default_graphic_extension),\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1228 $(filter $(patsubst %.$(default_graphic_extension),%.gpi,$(specified_graphic_targets)),\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1229 $(all_files.gpi)) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1230 ) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1231 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1232 # Determine which .d files need including from the information gained above. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1233 # This is done by first checking whether a batch target exists. If it does, |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1234 # then all *default* stems are used to create possible includes (nobuild need |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1235 # not apply for batch status). If no batch targets exist, then the individual |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1236 # targets are considered and appropriate includes are taken from them. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1237 source_stems_to_include := \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1238 $(sort\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1239 $(if $(specified_batch_source_targets),\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1240 $(default_stems_ss),\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1241 $(foreach t,$(specified_source_targets),\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1242 $(foreach p,$(allowed_source_patterns),\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1243 $(patsubst $p,%,$(filter $p $(stems_ssg),$t)) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1244 )) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1245 )) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1246 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1247 # Determine which .gpi.d files are needed using the above information. We |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1248 # first check whether a batch target is specified, then check individual |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1249 # graphics that may have been specified. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1250 graphic_stems_to_include := \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1251 $(sort\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1252 $(if $(specified_batch_graphic_targets),\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1253 $(default_stems.gpi),\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1254 $(foreach t,$(specified_gpi_targets),\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1255 $(foreach p,$(allowed_graphic_patterns),\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1256 $(patsubst $p,%,$(filter $p,$t)) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1257 )) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1258 )) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1259 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1260 # All dependencies for the 'all' targets |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1261 all_pdf_targets := $(addsuffix .pdf,$(stems_ssg)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1262 all_ps_targets := $(addsuffix .ps,$(stems_ssg)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1263 all_dvi_targets := $(addsuffix .dvi,$(stems_ssg)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1264 all_tex_targets := $(addsuffix .tex,$(stems_sg)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1265 all_d_targets := $(addsuffix .d,$(stems_ssg)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1266 all_graphics_targets := $(addsuffix .$(default_graphic_extension),$(stems_gg)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1267 intermediate_graphics_targets := $(if $(filter pdf,$(default_graphic_extension)),$(addsuffix .eps,$(stems_gg)),) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1268 all_pstex_targets := $(addsuffix .pstex_t,$(stems.fig)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1269 all_dot2tex_targets := $(addsuffix .dot_t,$(stems.dot)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1270 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1271 all_known_graphics := $(sort $(all_graphics_targets) $(wildcard *.$(default_graphic_extension))) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1272 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1273 default_pdf_targets := $(addsuffix .pdf,$(default_stems_ss)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1274 ifneq "$(strip $(BUILD_STRATEGY))" "pdflatex" |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1275 default_ps_targets := $(addsuffix .ps,$(default_stems_ss)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1276 default_dvi_targets := $(addsuffix .dvi,$(default_stems_ss)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1277 pre_pdf_extensions := dvi ps |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1278 endif |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1279 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1280 # Extensions generated by LaTeX invocation that can be removed when complete |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1281 rm_ext := \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1282 log *.log aux $(pre_pdf_extensions) pdf blg bbl out nav snm toc lof lot lol pfg \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1283 fls vrb idx ind ilg glg glo gls lox nls nlo nlg brf mtc maf brf |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1284 backup_patterns := *~ *.bak *.backup body.tmp head.tmp |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1285 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1286 graph_stem := _graph |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1287 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1288 # All LaTeX-generated files that can be safely removed |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1289 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1290 rm_tex := \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1291 $(foreach e,$(rm_ext),$(addsuffix .$e,$(all_stems_source))) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1292 $(foreach e,$(rm_ext) tex,$(addsuffix .$e,$(all_stems_sg))) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1293 $(addsuffix .log,$(all_ps_targets) $(all_pdf_targets)) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1294 $(addsuffix .*.log,$(stems_graphic)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1295 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1296 # These are the files that will affect .gpi transformation for all .gpi files. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1297 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1298 # Use only the first one found. Backward compatible values are at the end. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1299 # Note that we use foreach, even though wildcard also returns a list, to ensure |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1300 # that the order in the uppercase variables is preserved. Directory listings |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1301 # provide no such guarantee, so we avoid relying on them. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1302 gpi_sed := $(strip \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1303 $(firstword $(foreach f,$(GNUPLOT_SED),$(wildcard $f)))) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1304 gpi_global := $(strip \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1305 $(firstword $(foreach f,$(GNUPLOT_GLOBAL),$(wildcard $f)))) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1306 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1307 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1308 # Functions used in generating output |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1309 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1310 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1311 # Outputs all source dependencies to stdout. The first argument is the file to |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1312 # be parsed, the second is a list of files that will show up as dependencies in |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1313 # the new .d file created here. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1314 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1315 # NOTE: BSD sed does not understand \|, so we have to do something more |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1316 # clunky to extract suitable extensions. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1317 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1318 # Also, we do a little bit of funny rewriting up front (TARGETS=) to make sure |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1319 # that we can properly backslash-escape spaces in file names (e.g, on Cygwin |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1320 # for tex distributions that have "Program Files" in their name). |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1321 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1322 # $(call get-inputs,<parsed file>,<target files>) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1323 define get-inputs |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1324 $(SED) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1325 -e '/^INPUT/!d' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1326 -e 's!^INPUT \(\./\)\{0,1\}!!' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1327 -e 's/[[:space:]]/\\ /g' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1328 -e 's/\(.*\)\.aux$$/\1.tex/' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1329 -e '/\.tex$$/b addtargets' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1330 -e '/\.cls$$/b addtargets' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1331 -e '/\.sty$$/b addtargets' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1332 -e '/\.pstex_t$$/b addtargets' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1333 -e '/\.dot_t$$/b addtargets' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1334 -e 'd' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1335 -e ':addtargets' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1336 -e 's/^/$2: /' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1337 $1 | $(SORT) | $(UNIQ) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1338 endef |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1339 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1340 # $(call get-missing-inputs,<log file>,<target files>) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1341 define get-missing-inputs |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1342 $(SED) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1343 -e '$$ b para' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1344 -e '/^$$/b para' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1345 -e 'H' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1346 -e 'd' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1347 -e ':para' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1348 -e 'x' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1349 -e '/^$$/d' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1350 -e 's/^\n*//' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1351 -e '/^! LaTeX Error: File /{' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1352 -e ' s/^/::DOUBLE_PARAGRAPH::/' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1353 -e ' h' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1354 -e ' d' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1355 -e '}' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1356 -e 's/^::DOUBLE_PARAGRAPH:://' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1357 -e '/Default extension: /!d' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1358 -e 's/[[:space:]]\{1,\}/ /g' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1359 -e 's/\n\{1,\}/ /g' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1360 -e 's/^.*File `//' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1361 -e 's/'"'"' not found\..*//' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1362 -e '/\.tex/!s/$$/.tex/' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1363 -e 's/[[:space:]]/\\ /g' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1364 -e 'h' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1365 -e 's/.*/# MISSING input "&" - (presence of comment affects build)/' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1366 -e 'p' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1367 -e 's/.*//' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1368 -e 'x' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1369 -e 's/^/$2: /' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1370 $1 | $(SORT) | $(UNIQ) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1371 endef |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1372 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1373 # Get source file for specified graphics stem. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1374 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1375 # $(call graphics-source,<stem>) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1376 define graphics-source |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1377 $(strip $(firstword \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1378 $(wildcard \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1379 $(addprefix $1.,\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1380 $(graphic_source_extensions))) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1381 $1 \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1382 )) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1383 endef |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1384 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1385 # Get the target file for the specified graphics file/stem |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1386 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1387 # $(call graphics-target,<stem>) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1388 define graphics-target |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1389 $(strip $(if $(filter $(addprefix %.,$(graphic_target_extensions)),$1), $1, |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1390 $(firstword $(patsubst $(addprefix %.,$(graphic_source_extensions) $(graphic_target_extensions)), %, $1).$(default_graphic_extension) $1.$(default_graphic_extension)))) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1391 endef |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1392 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1393 # Outputs all of the graphical dependencies to stdout. The first argument is |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1394 # the stem of the source file being built, the second is a list of suffixes |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1395 # that will show up as dependencies in the generated .d file. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1396 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1397 # Note that we try to escape spaces in filenames where possible. We have to do |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1398 # it with three backslashes so that as the name percolates through the makefile |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1399 # it eventually ends up with the proper escaping when the build rule is found. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1400 # Ugly, but it appears to work. Note that graphicx doesn't allow filenames |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1401 # with spaces, so this could in many ways be moot unless you're using something |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1402 # like grffile. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1403 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1404 # For pdflatex, we really need the missing file to be specified without an |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1405 # extension, otherwise compilation barfs on the first missing file. Truly |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1406 # annoying, but there you have it. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1407 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1408 # It turns out that the graphics errors, although they have lines with empty |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1409 # space, are only made of two paragraphs. So, we just use some sed magic to |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1410 # get everything into paragraphs, detect when it's a paragraph that interests |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1411 # us, and double it up. Then we get the filename only if we're missing |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1412 # extensions (a sign that it's graphicx complaining). |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1413 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1414 # $(call get-graphics,<target file stem>) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1415 #.log,$(addprefix $*.,d $(build_target_extension) _graphics) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1416 define get-graphics |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1417 $(SED) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1418 -e '$$ b para' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1419 -e '/^$$/b para' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1420 -e 'H' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1421 -e 'd' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1422 -e ':para' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1423 -e 'x' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1424 -e '/^$$/d' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1425 -e 's/^\n*//' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1426 -e '/^! LaTeX Error: File `/{' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1427 -e ' s/^/::DOUBLE_PARAGRAPH::/' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1428 -e ' h' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1429 -e ' d' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1430 -e '}' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1431 -e 's/^::DOUBLE_PARAGRAPH:://' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1432 -e '/could not locate the file with any of these extensions:/{' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1433 -e ' s/\n\{1,\}/ /g' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1434 -e ' s/[[:space:]]\{1,\}/ /g' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1435 -e ' s/^.*File `//' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1436 -e ' s/'"'"' not found\..*//' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1437 -e ' h' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1438 -e ' s/.*/# MISSING stem "&" - (presence of comment affects build)/' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1439 -e ' p' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1440 -e ' g' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1441 -e ' b addtargets' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1442 -e '}' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1443 -e '/.*File: \(.*\) Graphic file (type [^)]*).*/{' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1444 -e ' s//\1/' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1445 -e ' b addtargets' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1446 -e '}' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1447 -e 'd' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1448 -e ':addtargets' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1449 -e 's/[[:space:]]/\\\\\\&/g' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1450 -e 'h' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1451 -e 's/.*/-include &.gpi.d/' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1452 -e 'p' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1453 -e 'g' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1454 -e 's/.*/$(addprefix $1,.d): $$$$(call graphics-source,&)/' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1455 -e 'p' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1456 -e 's/.*//' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1457 -e 'x' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1458 -e 's/.*/$(addprefix $1.,$(build_target_extension) _graphics): $$$$(call graphics-target,&)/' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1459 -e 'p' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1460 -e 'd' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1461 $*.log |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1462 endef |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1463 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1464 # Checks for build failure due to pstex inclusion, and gives instructions. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1465 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1466 # $(call die-on-pstexs,<parsed file>) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1467 define die-on-pstexs |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1468 if $(EGREP) -q '^! LaTeX Error: File .*\.pstex.* not found' $1; then \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1469 $(ECHO) "$(C_ERROR)Missing pstex_t file(s)$(C_RESET)"; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1470 $(ECHO) "$(C_ERROR)Please run$(C_RESET)"; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1471 $(ECHO) "$(C_ERROR) make all-pstex$(C_RESET)"; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1472 $(ECHO) "$(C_ERROR)before proceeding.$(C_RESET)"; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1473 exit 1; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1474 fi |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1475 endef |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1476 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1477 # Checks for build failure due to dot2tex, and gives instructions. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1478 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1479 # $(call die-on-dot2tex,<parsed file>) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1480 define die-on-dot2tex |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1481 if $(EGREP) -q ' LaTeX Error: File .*\.dot_t.* not found' $1; then \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1482 $(ECHO) "$(C_ERROR)Missing dot_t file(s)$(C_RESET)"; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1483 $(ECHO) "$(C_ERROR)Please run$(C_RESET)"; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1484 $(ECHO) "$(C_ERROR) make all-dot2tex$(C_RESET)"; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1485 $(ECHO) "$(C_ERROR)before proceeding.$(C_RESET)"; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1486 exit 1; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1487 fi |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1488 endef |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1489 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1490 # Checks for the existence of a .aux file, and dies with an error message if it |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1491 # isn't there. Note that we pass the file stem in, not the full filename, |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1492 # e.g., to check for foo.aux, we call it thus: $(call die-on-no-aux,foo) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1493 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1494 # $(call die-on-no-aux,<aux stem>) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1495 define die-on-no-aux |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1496 if [ ! -e '$1.aux' ]; then \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1497 $(call colorize-latex-errors,$1.log); \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1498 exit 1; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1499 fi |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1500 endef |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1501 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1502 # Outputs all index files to stdout. Arg 1 is the source file stem, arg 2 is |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1503 # the list of targets for the discovered dependency. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1504 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1505 # $(call get-log-index,<log file stem>,<target files>) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1506 define get-log-index |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1507 $(SED) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1508 -e 's/^No file \(.*\.ind\)\.$$/TARGETS=\1/' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1509 -e 's/^No file \(.*\.[gn]ls\)\.$$/TARGETS=\1/' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1510 -e 's/[[:space:]]/\\&/g' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1511 -e '/^TARGETS=/{' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1512 -e ' h' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1513 -e ' s/^TARGETS=/$2: /p' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1514 -e ' g' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1515 -e ' s/^TARGETS=\(.*\)/\1: $1.tex/p' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1516 -e '}' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1517 -e 'd' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1518 '$1.log' | $(SORT) | $(UNIQ) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1519 endef |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1520 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1521 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1522 # Outputs all bibliography files to stdout. Arg 1 is the source stem, arg 2 is |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1523 # a list of targets for each dependency found. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1524 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1525 # The script kills all lines that do not contain bibdata. Remaining lines have |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1526 # the \bibdata macro and delimiters removed to create a dependency list. A |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1527 # trailing comma is added, then all adjacent commas are collapsed into a single |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1528 # comma. Then commas are replaced with the string .bib[space], and the |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1529 # trailing space is killed off. Finally, all filename spaces are escaped. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1530 # This produces a list of space-delimited .bib filenames, which is what the |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1531 # make dep file expects to see. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1532 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1533 # Note that we give kpsewhich a bogus argument so that a failure of sed to |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1534 # produce output will not cause an error. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1535 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1536 # $(call get-bibs,<aux file>,<targets>) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1537 define get-bibs |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1538 $(SED) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1539 -e '/^\\bibdata/!d' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1540 -e 's/\\bibdata{\([^}]*\)}/\1,/' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1541 -e 's/,\{2,\}/,/g' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1542 -e 's/[[:space:]]/\\&/g' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1543 -e 's/,/.bib /g' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1544 -e 's/ \{1,\}$$//' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1545 $1 | $(XARGS) $(KPSEWHICH) '#######' | \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1546 $(SED) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1547 -e 's/^/$2: /' | \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1548 \$(SORT) | $(UNIQ) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1549 endef |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1550 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1551 # Makes a an aux file that only has stuff relevant to the target in it |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1552 # $(call make-auxtarget-file,<flattened-aux>,<new-aux>) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1553 define make-auxtarget-file |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1554 $(SED) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1555 -e '/^\\newlabel/!d' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1556 $1 > $2 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1557 endef |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1558 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1559 # Makes an aux file that only has stuff relevant to the bbl in it |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1560 # $(call make-auxbbl-file,<flattened-aux>,<new-aux>) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1561 define make-auxbbl-file |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1562 $(SED) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1563 -e '/^\\newlabel/d' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1564 $1 > $2 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1565 endef |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1566 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1567 # Makes a .gpi.d file from a .gpi file |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1568 # $(call make-gpi-d,<.gpi>,<.gpi.d>) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1569 define make-gpi-d |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1570 $(ECHO) '# vim: ft=make' > $2; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1571 $(ECHO) 'ifndef INCLUDED_$(call cleanse-filename,$2)' >> $2; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1572 $(ECHO) 'INCLUDED_$(call cleanse-filename,$2) := 1' >> $2; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1573 $(call get-gpi-deps,$1,$(addprefix $(2:%.gpi.d=%).,$(GNUPLOT_OUTPUT_EXTENSION) gpi.d)) >> $2; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1574 $(ECHO) 'endif' >> $2; |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1575 endef |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1576 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1577 # Parse .gpi files for data and loaded dependencies, output to stdout |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1578 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1579 # The sed script here tries to be clever about obtaining valid |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1580 # filenames from the gpi file. It assumes that the plot command starts its own |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1581 # line, which is not too difficult a constraint to satisfy. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1582 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1583 # This command script also generates 'include' directives for every 'load' |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1584 # command in the .gpi file. The load command must appear on a line by itself |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1585 # and the file it loads must have the suffix .gpi. If you don't want it to be |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1586 # compiled when running make graphics, then give it a suffix of ._include_.gpi. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1587 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1588 # $(call get-gpi-deps,<gpi file>,<targets>) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1589 define get-gpi-deps |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1590 $(SED) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1591 -e '/^[[:space:]]*s\{0,1\}plot/,/[^\\]$$/{' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1592 -e ' H' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1593 -e ' /[^\\]$$/{' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1594 -e ' s/.*//' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1595 -e ' x' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1596 -e ' s/\\\{0,1\}\n//g' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1597 -e ' s/^[[:space:]]*s\{0,1\}plot[[:space:]]*\(\[[^]]*\][[:space:]]*\)*/,/' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1598 -e ' s/[[:space:]]*\(['\''"][^'\''"]*['\''"]\)\{0,1\}[^,]*/\1/g' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1599 -e ' s/,['\''"]-\{0,1\}['\''"]//g' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1600 -e ' s/[,'\''"]\{1,\}/ /g' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1601 -e ' s!.*!$2: &!' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1602 -e ' p' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1603 -e ' }' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1604 -e ' d' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1605 -e '}' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1606 -e 's/^[[:space:]]*load[[:space:]]*['\''"]\([^'\''"]*\.gpi\)['\''"].*$$/-include \1.d/p' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1607 -e 'd' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1608 $1 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1609 endef |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1610 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1611 # Colorizes real, honest-to-goodness LaTeX errors that can't be overcome with |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1612 # recompilation. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1613 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1614 # Note that we only ignore file not found errors for things that we know how to |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1615 # build, like graphics files. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1616 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1617 # $(call colorize-latex-errors,<log file>) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1618 define colorize-latex-errors |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1619 $(SED) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1620 -e '$$ b para' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1621 -e '/^$$/b para' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1622 -e 'H' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1623 -e 'd' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1624 -e ':para' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1625 -e 'x' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1626 -e '/^$$/d' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1627 -e 's/^\n*//' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1628 -e '/^! LaTeX Error: File /{' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1629 -e ' s/^/::DOUBLE_PARAGRAPH::/' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1630 -e ' h' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1631 -e ' d' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1632 -e '}' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1633 -e 's/^::DOUBLE_PARAGRAPH:://' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1634 -e '/could not locate the file with any of these extensions:/d' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1635 -e '/Missing .begin.document/{' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1636 -e ' h' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1637 -e ' s/.*/Are you trying to build an include file?/' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1638 -e ' x' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1639 -e ' G' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1640 -e '}' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1641 -e '/ LaTeX Error: Cannot determine size/d' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1642 -e 's/.* LaTeX Error .*/$(C_ERROR)&$(C_RESET)/p' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1643 -e 's/Error: pdflatex (file .*/$(C_ERROR)& - try specifying it without an extension$(C_RESET)/p' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1644 -e '/.*\*hyperref using.*driver \(.*\)\*.*/{' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1645 -e ' s//\1/' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1646 -e ' /^$(hyperref_driver_pattern)$$/!{' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1647 -e ' s/.*//' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1648 -e ' p' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1649 -e ' s/.*/$(C_ERROR)--- Using incorrect driver for hyperref! ---$(C_RESET)/' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1650 -e ' p' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1651 -e ' s/.*/$(C_ERROR)$(hyperref_driver_error)$(C_RESET)/' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1652 -e ' p' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1653 -e ' }' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1654 -e ' d' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1655 -e '}' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1656 -e '/ LaTeX Error: Unknown graphics extension/{' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1657 -e ' s/^/ /' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1658 -e ' h' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1659 -e ' s/.*/--- Graphics extension error:/' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1660 -e ' G' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1661 -e ' h' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1662 -e ' s/.*/--- If you specified the extension explicitly in your .tex file, try removing it./' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1663 -e ' H' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1664 -e ' g' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1665 -e ' s/.*/$(C_ERROR)&$(C_RESET)/' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1666 -e ' p' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1667 -e ' s/.*//' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1668 -e ' h' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1669 -e ' b' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1670 -e '}' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1671 -e 's/.*\(\n\{0,\}! .*\)/$(C_ERROR)\1$(C_RESET)/p' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1672 -e 'd' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1673 $1 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1674 endef |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1675 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1676 # Colorize Makeindex errors |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1677 define colorize-makeindex-errors |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1678 $(SED) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1679 -e '/^!! /{' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1680 -e ' N' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1681 -e ' s/^.*$$/$(C_ERROR)&$(C_RESET)/' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1682 -e ' p' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1683 -e '}' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1684 -e 'd' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1685 $1 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1686 endef |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1687 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1688 # Colorize epstopdf errors |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1689 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1690 # $(call colorize-epstopdf-errors,<log file>) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1691 define colorize-epstopdf-errors |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1692 $(SED) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1693 -e '/^Error:/,/^Execution stack:/{' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1694 -e ' /^Execution stack:/d' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1695 -e ' s/.*/$(C_ERROR)&$(C_RESET)/' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1696 -e ' p' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1697 -e '}' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1698 -e 'd' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1699 $1 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1700 endef |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1701 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1702 # Colorize GNUplot errors |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1703 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1704 # $(call colorize-gnuplot-errors,<log file>) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1705 define colorize-gnuplot-errors |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1706 $(SED) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1707 -e '/, line [0-9]*:/!{' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1708 -e ' H' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1709 -e ' x' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1710 -e ' s/.*\n\(.*\n.*\)$$/\1/' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1711 -e ' x' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1712 -e '}' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1713 -e '/, line [0-9]*:/{' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1714 -e ' H' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1715 -e ' /unknown.*terminal type/{' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1716 -e ' s/.*/--- Try changing the GNUPLOT_OUTPUT_EXTENSION variable to 'eps'./' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1717 -e ' H' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1718 -e ' }' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1719 -e ' /gpihead/{' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1720 -e ' s/.*/--- This could be a Makefile bug - contact the maintainer./' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1721 -e ' H' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1722 -e ' }' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1723 -e ' g' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1724 -e ' s/.*/$(C_ERROR)&$(C_RESET)/' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1725 -e ' p' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1726 -e '}' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1727 -e '/^gnuplot>/,/^$$/{' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1728 -e ' s/^gnuplot.*/$(C_ERROR)&/' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1729 -e ' s/^$$/$(C_RESET)/' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1730 -e ' p' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1731 -e '}' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1732 -e 'd' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1733 $1 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1734 endef |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1735 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1736 # Colorize GraphViz errors |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1737 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1738 # $(call colorize-dot-errors,<log file>) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1739 define colorize-dot-errors |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1740 $(SED) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1741 -e '/^Error:/,/context:/s/.*/$(C_ERROR)&$(C_RESET)/p' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1742 -e 's/^Warning:.*/$(C_WARNING)&$(C_RESET)/p' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1743 -e 'd' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1744 '$1' |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1745 endef |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1746 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1747 # Get all important .aux files from the top-level .aux file and merges them all |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1748 # into a single file, which it outputs to stdout. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1749 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1750 # $(call flatten-aux,<toplevel aux>,<output file>) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1751 define flatten-aux |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1752 $(SED) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1753 -e '/\\@input{\(.*\)}/{' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1754 -e 's//\1/' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1755 -e 's![.:]!\\&!g' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1756 -e 'h' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1757 -e 's!.*!\\:\\\\@input{&}:{!' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1758 -e 'p' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1759 -e 'x' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1760 -e 's/\\././g' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1761 -e 's/.*/r &/p' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1762 -e 's/.*/d/p' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1763 -e 's/.*/}/p' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1764 -e 'd' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1765 -e '}' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1766 -e 'd' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1767 '$1' > "$1.$$$$.sed.make"; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1768 $(SED) -f "$1.$$$$.sed.make" '$1' > "$1.$$$$.make"; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1769 $(SED) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1770 -e '/^\\relax/d' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1771 -e '/^\\bibcite/d' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1772 -e 's/^\(\\newlabel{[^}]\{1,\}}\).*/\1/' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1773 "$1.$$$$.make" | $(SORT) > '$2'; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1774 $(call remove-temporary-files,$1.$$$$.make $1.$$$$.sed.make) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1775 endef |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1776 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1777 # Generate pdf from postscript |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1778 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1779 # Note that we don't just call ps2pdf, since there are so many versions of that |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1780 # script on various systems. Instead, we call the postscript interpreter |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1781 # directly. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1782 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1783 # $(call ps2pdf,infile,outfile,[embed fonts]) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1784 define ps2pdf |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1785 $(GS) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1786 -dSAFER -dCompatibilityLevel=$(PS_COMPATIBILITY) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1787 $(if $3,$(PS_EMBED_OPTIONS)) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1788 -q -dNOPAUSE -dBATCH \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1789 -sDEVICE=pdfwrite -sstdout=%stderr \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1790 '-sOutputFile=$2' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1791 -dSAFER -dCompatibilityLevel=$(PS_COMPATIBILITY) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1792 $(if $3,$(PS_EMBED_OPTIONS)) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1793 -c .setpdfwrite \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1794 -f '$1' |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1795 endef |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1796 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1797 # Colorize LaTeX output. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1798 # This uses a neat trick from the Sed & Awk Book from O'Reilly: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1799 # 1) If a line has a single ending paren, delete it to make a blank line (so |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1800 # that we catch the first error, which is not always preceded by a blank |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1801 # line). |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1802 # 2) Ensure that the last line of the file gets appended to the hold buffer, |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1803 # and blank it out to trigger end-of-paragraph logic below. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1804 # 3) When encountering a blank line (LaTeX output helpfully breaks output on |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1805 # newlines) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1806 # a) swap the hold buffer (containing the paragraph) into the pattern buffer (putting a blank line into the hold buffer), |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1807 # b) remove the newline at the beginning (don't ask), |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1808 # c) apply any colorizing substitutions necessary to ensure happiness. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1809 # d) get the newline out of the hold buffer and append it |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1810 # e) profit! (print) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1811 # 4) Anything not colorized is deleted, unless in verbose mode. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1812 color_tex := \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1813 $(SED) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1814 -e '$${' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1815 -e ' /^$$/!{' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1816 -e ' H' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1817 -e ' s/.*//' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1818 -e ' }' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1819 -e '}' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1820 -e '/^$$/!{' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1821 -e ' H' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1822 -e ' d' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1823 -e '}' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1824 -e '/^$$/{' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1825 -e ' x' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1826 -e ' s/^\n//' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1827 -e ' /Output written on /{' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1828 -e ' s/.*Output written on \([^(]*\) (\([^)]\{1,\}\)).*/Success! Wrote \2 to \1/' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1829 -e ' s/[[:digit:]]\{1,\}/$(C_PAGES)&$(C_RESET)/g' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1830 -e ' s/Success!/$(C_SUCCESS)&$(C_RESET)/g' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1831 -e ' s/to \(.*\)$$/to $(C_SUCCESS)\1$(C_RESET)/' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1832 -e ' b end' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1833 -e ' }' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1834 -e ' / *LaTeX Error:.*/{' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1835 -e ' s/.*\( *LaTeX Error:.*\)/$(C_ERROR)\1$(C_RESET)/' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1836 -e ' b end' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1837 -e ' }' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1838 -e ' /.*Warning:.*/{' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1839 -e ' s//$(C_WARNING)&$(C_RESET)/' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1840 -e ' b end' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1841 -e ' }' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1842 -e ' /Underfull.*/{' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1843 -e ' s/.*\(Underfull.*\)/$(C_UNDERFULL)\1$(C_RESET)/' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1844 -e ' b end' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1845 -e ' }' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1846 -e ' /Overfull.*/{' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1847 -e ' s/.*\(Overfull.*\)/$(C_OVERFULL)\1$(C_RESET)/' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1848 -e ' b end' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1849 -e ' }' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1850 $(if $(VERBOSE),,-e ' d') \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1851 -e ' :end' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1852 -e ' G' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1853 -e '}' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1854 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1855 # Colorize BibTeX output. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1856 color_bib := \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1857 $(SED) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1858 -e 's/^Warning--.*/$(C_WARNING)&$(C_RESET)/' -e 't' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1859 -e '/---/,/^.[^:]/{' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1860 -e ' H' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1861 -e ' /^.[^:]/{' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1862 -e ' x' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1863 -e ' s/\n\(.*\)/$(C_ERROR)\1$(C_RESET)/' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1864 -e ' p' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1865 -e ' s/.*//' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1866 -e ' h' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1867 -e ' d' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1868 -e ' }' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1869 -e ' d' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1870 -e '}' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1871 -e '/(.*error.*)/s//$(C_ERROR)&$(C_RESET)/' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1872 $(if $(VERBOSE),,-e 'd') |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1873 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1874 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1875 # Make beamer output big enough to print on a full page. Landscape doesn't |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1876 # seem to work correctly. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1877 enlarge_beamer = $(PSNUP) -l -1 -W128mm -H96mm -pletter |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1878 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1879 # $(call test-run-again,<source stem>) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1880 test-run-again = $(EGREP) -q '^(.*Rerun .*|No file $1\.[^.]+\.)$$' $1.log |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1881 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1882 # This tests whether the build target commands should be run at all, from |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1883 # viewing the log file. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1884 # $(call test-log-for-need-to-run,<source stem>) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1885 define test-log-for-need-to-run |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1886 $(SED) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1887 -e '/^No file $(call escape-dots,$1)\.aux\./d' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1888 $1.log \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1889 | $(EGREP) -q '^(.*Rerun .*|No file $1\.[^.]+\.|No file .+\.tex\.|LaTeX Warning: File.*)$$' |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1890 endef |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1891 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1892 # LaTeX invocations |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1893 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1894 # $(call latex,<tex file>,[<extra LaTeX args>]) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1895 run-latex = $(latex_build_program) --interaction=batchmode $(if $2,$2,) $1 > /dev/null |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1896 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1897 # $(call latex-color-log,<LaTeX stem>) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1898 latex-color-log = $(color_tex) $1.log |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1899 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1900 # $(call run-makeindex,<input>,<output>,<log>,<extra flags>) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1901 define run-makeindex |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1902 success=1; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1903 if ! $(MAKEINDEX) -q $1 -t $3 -o $2 $4 > /dev/null || $(EGREP) -q '^!!' $3; then \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1904 $(call colorize-makeindex-errors,$3); \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1905 $(RM) -f '$2'; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1906 success=0; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1907 fi; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1908 [ "$$success" = "1" ] && $(sh_true) || $(sh_false); |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1909 endef |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1910 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1911 # This runs the given script to generate output, and it uses MAKE_RESTARTS to |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1912 # ensure that it never runs it more than once for a particular root make |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1913 # invocation. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1914 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1915 # $(call run-script,<interpreter>,<input>,<output>) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1916 define run-script |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1917 [ ! -e '$2.cookie' ] && $(ECHO) "restarts=$(RESTARTS)" > $2.cookie && $(ECHO) "level=$(MAKELEVEL)" >> $2.cookie; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1918 restarts=`$(SED) -n -e 's/^restarts=//p' $2.cookie`; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1919 level=`$(SED) -n -e 's/^level=//p' $2.cookie`; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1920 if $(EXPR) $(MAKELEVEL) '<=' $$level '&' $(RESTARTS) '<=' $$restarts >/dev/null; then \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1921 $(call echo-build,$2,$3,$(RESTARTS)-$(MAKELEVEL)); \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1922 $1 '$2' '$3'; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1923 $(ECHO) "restarts=$(RESTARTS)" > '$2.cookie'; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1924 $(ECHO) "level=$(MAKELEVEL)" >> '$2.cookie'; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1925 fi |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1926 endef |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1927 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1928 # BibTeX invocations |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1929 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1930 # $(call run-bibtex,<tex stem>) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1931 run-bibtex = $(BIBTEX) $1 | $(color_bib) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1932 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1933 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1934 # $(call convert-eps-to-pdf,<eps file>,<pdf file>,[gray]) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1935 # Note that we don't use the --filter flag because it has trouble with bounding boxes that way. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1936 define convert-eps-to-pdf |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1937 $(if $3,$(CAT) '$1' | $(call kill-ps-color) > '$1.cookie',$(CP) '$1' '$1.cookie'); \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1938 $(EPSTOPDF) '$1.cookie' --outfile='$2' > $1.log; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1939 $(call colorize-epstopdf-errors,$1.log); |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1940 endef |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1941 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1942 # $(call convert-gpi,<gpi file>,<output file>,[gray]) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1943 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1944 define convert-gpi |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1945 $(ECHO) 'set terminal $(if $(filter %.pdf,$2),pdf enhanced,postscript enhanced eps)' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1946 $(if $(filter %.pdf,$2),fsize ,)$(call get-default,$(strip \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1947 $(firstword \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1948 $(shell \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1949 $(SED) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1950 -e 's/^\#\#FONTSIZE=\([[:digit:]]\{1,\}\)/\1/p' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1951 -e 'd' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1952 $1 $(strip $(gpi_global)) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1953 ) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1954 ) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1955 ),$(if $(filter %.pdf,$2),$(DEFAULT_GPI_PDF_FONTSIZE),$(DEFAULT_GPI_EPS_FONTSIZE))) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1956 $(strip $(if $3,monochrome,$(if \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1957 $(shell $(EGREP) '^\#\#[[:space:]]*GRAY[[:space:]]*$$' $< $(gpi_global)),\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1958 ,color))) > $1head.make; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1959 $(ECHO) 'set output "$2"' >> $1head.make; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1960 $(if $(gpi_global),$(CAT) $(gpi_global) >> $1head.make;,) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1961 fnames='$1head.make $1';\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1962 $(if $(gpi_sed),\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1963 $(SED) -f '$(gpi_sed)' $$fnames > $1.temp.make; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1964 fnames=$1.temp.make;,\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1965 ) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1966 success=1; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1967 if ! $(GNUPLOT) $$fnames 2>$1.log; then \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1968 $(call colorize-gnuplot-errors,$1.log); \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1969 success=0; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1970 fi; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1971 $(if $(gpi_sed),$(call remove-temporary-files,$1.temp.make);,) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1972 $(call remove-temporary-files,$1head.make); \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1973 [ "$$success" = "1" ] && $(sh_true) || $(sh_false); |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1974 endef |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1975 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1976 # Creation of .eps files from .png files |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1977 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1978 # The intermediate step of PNM (using NetPBM) produces much nicer output than |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1979 # ImageMagick's "convert" binary. I couldn't get the right combination of |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1980 # flags to make it look nice, anyway. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1981 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1982 # To handle gray scale conversion, we pipe things through ppmtopgm in the |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1983 # middle. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1984 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1985 # $(call convert-png,<png file>,<eps file>) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1986 define convert-png |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1987 $(PNGTOPNM) "$1" \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1988 $(if $3,| $(PPMTOPGM),) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1989 | $(PNMTOPS) -noturn \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1990 > "$2" |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1991 endef |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1992 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1993 # Creation of .eps files from .jpg files |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1994 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1995 # Thanks to brubakee for this solution. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1996 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1997 # Uses Postscript level 2 to avoid file size bloat |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1998 # $(call convert-jpg,<jpg file>,<eps file>) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
1999 define convert-jpg |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2000 $(CONVERT) $(if $3,-type Grayscale,) '$1' eps2:'$2' |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2001 endef |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2002 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2003 # Creation of .eps files from .fig files |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2004 # $(call convert-fig,<fig file>,<output file>,[gray]) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2005 convert-fig = $(FIG2DEV) -L $(if $(filter %.pdf,$2),pdf,eps) $(if $3,-N,) $1 $2 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2006 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2007 # Creation of .pstex files from .fig files |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2008 # $(call convert-fig-pstex,<fig file>,<pstex file>) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2009 convert-fig-pstex = $(FIG2DEV) -L pstex $1 $2 > /dev/null 2>&1 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2010 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2011 # Creation of .pstex_t files from .fig files |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2012 # $(call convert-fig-pstex-t,<fig file>,<pstex file>,<pstex_t file>) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2013 convert-fig-pstex-t = $(FIG2DEV) -L pstex_t -p $3 $1 $2 > /dev/null 2>&1 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2014 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2015 # Creation of .dot_t files from .dot files |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2016 # #(call convert-dot-tex,<dot file>,<dot_t file>) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2017 convert-dot-tex = $(DOT2TEX) '$1' > '$2' |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2018 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2019 # Converts svg files into .eps files |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2020 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2021 # $(call convert-svg,<svg file>,<eps file>,[gray]) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2022 convert-svg = $(INKSCAPE) --export-eps='$2' '$1' |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2023 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2024 # Converts xvg files into .eps files |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2025 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2026 # $(call convert-xvg,<xvg file>,<eps file>,[gray]) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2027 convert-xvg = $(XMGRACE) '$1' -printfile - -hardcopy -hdevice $(if $3,-mono,) EPS > '$2' |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2028 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2029 # Converts .eps.gz files into .eps files |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2030 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2031 # $(call convert-epsgz,<eps.gz file>,<eps file>,[gray]) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2032 convert-epsgz = $(GUNZIP) -c '$1' $(if $3,| $(call kill-ps-color)) > '$2' |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2033 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2034 # Converts .eps files into .eps files (usually a no-op, but can make grayscale) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2035 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2036 # $(call convert-eps,<in file>,<out file>,[gray]) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2037 convert-eps = $(if $3,$(call kill-ps-color) $1 > $2) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2038 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2039 # The name of the file containing special postscript commands for grayscale |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2040 gray_eps_file := gray.eps.make |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2041 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2042 # Changes sethsbcolor and setrgbcolor calls in postscript to always produce |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2043 # grayscale. In general, this is accomplished by writing new versions of those |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2044 # functions into the user dictionary space, which is looked up before the |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2045 # global or system dictionaries (userdict is one of the permanent dictionaries |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2046 # in postscript and is not read-only like systemdict). |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2047 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2048 # For setrgbcolor, the weighted average of the triple is computed and the |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2049 # triple is replaced with three copies of that average before the original |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2050 # procedure is called: .299R + .587G + .114B |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2051 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2052 # For sethsbcolor, the color is first converted to RGB, then to grayscale by |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2053 # the new setrgbcolor operator as described above. Why is this done? |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2054 # Because simply using the value component will tend to make pure colors |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2055 # white, a very undesirable thing. Pure blue should not translate to white, |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2056 # but to some level of gray. Conversion to RGB does the right thing. It's |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2057 # messy, but it works. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2058 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2059 # From |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2060 # http://en.wikipedia.org/wiki/HSV_color_space#Transformation_from_HSV_to_RGB, |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2061 # HSB = HSV (Value = Brightness), and the formula used to convert to RGB is |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2062 # as follows: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2063 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2064 # Hi = int(floor(6 * H)) mod 6 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2065 # f = 6 * H - Hi |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2066 # p = V(1-S) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2067 # q = V(1-fS) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2068 # t = V(1-(1-f)S) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2069 # if Hi = 0: R G B <-- V t p |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2070 # if Hi = 1: R G B <-- q V p |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2071 # if Hi = 2: R G B <-- p V t |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2072 # if Hi = 3: R G B <-- p q V |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2073 # if Hi = 4: R G B <-- t p V |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2074 # if Hi = 5: R G B <-- V p q |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2075 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2076 # The messy stack-based implementation is below |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2077 # $(call create-gray-eps-file,filename) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2078 define create-gray-eps-file |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2079 $(ECHO) -n -e '\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2080 /OLDRGB /setrgbcolor load def\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2081 /setrgbcolor {\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2082 .114 mul exch\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2083 .587 mul add exch\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2084 .299 mul add\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2085 dup dup\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2086 OLDRGB\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2087 } bind def\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2088 /OLDHSB /sethsbcolor load def\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2089 /sethsbcolor {\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2090 2 index % H V S H\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2091 6 mul floor cvi 6 mod % Hi V S H\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2092 3 index % H Hi V S H\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2093 6 mul % 6H Hi V S H\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2094 1 index % Hi 6H Hi V S H\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2095 sub % f Hi V S H\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2096 2 index 1 % 1 V f Hi V S H\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2097 4 index % S 1 V f Hi V S H\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2098 sub mul % p f Hi V S H\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2099 3 index 1 % 1 V p f Hi V S H\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2100 6 index % S 1 V p f Hi V S H\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2101 4 index % f S 1 V p f Hi V S H\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2102 mul sub mul % q p f Hi V S H\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2103 4 index 1 1 % 1 1 V q p f Hi V S H\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2104 5 index % f 1 1 V q p f Hi V S H\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2105 sub % (1-f) 1 V q p f Hi V S H\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2106 8 index % S (1-f) 1 V q p f Hi V S H\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2107 mul sub mul % t q p f Hi V S H\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2108 4 -1 roll pop % t q p Hi V S H\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2109 7 -2 roll pop pop % t q p Hi V\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2110 5 -2 roll % Hi V t q p\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2111 dup 0 eq\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2112 {1 index 3 index 6 index}\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2113 {\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2114 dup 1 eq\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2115 {3 index 2 index 6 index}\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2116 {\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2117 dup 2 eq\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2118 {4 index 2 index 4 index}\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2119 {\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2120 dup 3 eq\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2121 {4 index 4 index 3 index}\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2122 {\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2123 dup 4 eq\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2124 {2 index 5 index 3 index}\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2125 {\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2126 dup 5 eq\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2127 {1 index 5 index 5 index}\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2128 {0 0 0}\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2129 ifelse\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2130 }\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2131 ifelse\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2132 }\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2133 ifelse\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2134 }\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2135 ifelse\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2136 }\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2137 ifelse\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2138 }\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2139 ifelse % B G R Hi V t q p\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2140 setrgbcolor\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2141 5 {pop} repeat\n\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2142 } bind def\n'\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2143 > $1 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2144 endef |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2145 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2146 # This actually inserts the color-killing code into a postscript file |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2147 # $(call kill-ps-color) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2148 define kill-ps-color |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2149 $(SED) -e '/%%EndComments/r $(gray_eps_file)' |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2150 endef |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2151 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2152 # Converts graphviz .dot files into .eps files |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2153 # Grayscale is not directly supported by dot, so we pipe it through fig2dev in |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2154 # that case. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2155 # $(call convert-dot,<dot file>,<eps file>,<log file>,[gray]) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2156 define convert-dot |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2157 $(DOT) -Tps '$1' 2>'$3' $(if $4,| $(call kill-ps-color)) > $2; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2158 $(call colorize-dot-errors,$3) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2159 endef |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2160 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2161 # Convert DVI to Postscript |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2162 # $(call make-ps,<dvi file>,<ps file>,<log file>,[<paper size>]) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2163 make-ps = \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2164 $(DVIPS) -o '$2' $(if $(filter-out BEAMER,$4),-t$(firstword $4),) '$1' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2165 $(if $(filter BEAMER,$4),| $(enlarge_beamer)) > $3 2>&1 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2166 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2167 # Convert Postscript to PDF |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2168 # $(call make-pdf,<ps file>,<pdf file>,<log file>,<embed file>) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2169 make-pdf = \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2170 $(call ps2pdf,$1,$2,$(filter 1,$(shell $(CAT) '$4'))) > '$3' 2>&1 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2171 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2172 # Display information about what is being done |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2173 # $(call echo-build,<input file>,<output file>,[<run number>]) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2174 echo-build = $(ECHO) "$(C_BUILD)= $1 --> $2$(if $3, ($3),) =$(C_RESET)" |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2175 echo-graphic = $(ECHO) "$(C_GRAPHIC)= $1 --> $2 =$(C_RESET)" |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2176 echo-dep = $(ECHO) "$(C_DEP)= $1 --> $2 =$(C_RESET)" |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2177 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2178 # Display a list of something |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2179 # $(call echo-list,<values>) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2180 echo-list = for x in $1; do $(ECHO) "$$x"; done |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2181 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2182 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2183 # DEFAULT TARGET |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2184 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2185 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2186 .PHONY: all |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2187 all: $(default_pdf_targets) ; |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2188 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2189 .PHONY: all-pdf |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2190 all-pdf: $(default_pdf_targets) ; |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2191 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2192 ifneq "$(strip $(BUILD_STRATEGY))" "pdflatex" |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2193 .PHONY: all-ps |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2194 all-ps: $(default_ps_targets) ; |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2195 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2196 .PHONY: all-dvi |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2197 all-dvi: $(default_dvi_targets) ; |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2198 endif |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2199 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2200 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2201 # VIEWING TARGET |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2202 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2203 .PHONY: show |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2204 show: all |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2205 $(QUIET)for x in $(default_pdf_targets); do \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2206 [ -e "$$x" ] && $(VIEW_PDF) $$x & \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2207 done |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2208 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2209 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2210 # INCLUDES |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2211 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2212 source_includes := $(addsuffix .d,$(source_stems_to_include)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2213 graphic_includes := $(addsuffix .gpi.d,$(graphic_stems_to_include)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2214 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2215 # Include only the dependencies used |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2216 ifneq "" "$(source_includes)" |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2217 include $(source_includes)$(call include-message,$(source_includes)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2218 endif |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2219 ifneq "" "$(graphic_includes)" |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2220 include $(graphic_includes)$(call include-message,$(graphic_includes)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2221 endif |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2222 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2223 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2224 # MAIN TARGETS |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2225 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2226 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2227 # Note that we don't just say %: %.pdf here - this can tend to mess up our |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2228 # includes, which detect what kind of file we are asking for. For example, |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2229 # asking to build foo.pdf is much different than asking to build foo when |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2230 # foo.gpi exists, because we look through all of the goals for *.pdf that |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2231 # matches *.gpi, then use that to determine which include files we need to |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2232 # build. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2233 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2234 # Thus, we invoke make recursively with better arugments instead, restarting |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2235 # all of the appropriate machinery. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2236 .PHONY: $(default_stems_ss) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2237 $(default_stems_ss): %: %.pdf ; |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2238 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2239 # This builds and displays the wanted file. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2240 .PHONY: $(addsuffix ._show,$(stems_ssg)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2241 %._show: %.pdf |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2242 $(QUIET)$(VIEW_PDF) $< & |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2243 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2244 ifneq "$(strip $(BUILD_STRATEGY))" "pdflatex" |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2245 .SECONDARY: $(all_pdf_targets) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2246 %.pdf: %.ps %.embed.make |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2247 $(QUIET)$(call echo-build,$<,$@) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2248 $(QUIET)$(call make-pdf,$<,$@.temp,$@.log,$*.embed.make); \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2249 if [ x"$$?" = x"0" ]; then \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2250 $(if $(VERBOSE),$(CAT) $@.log,:); \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2251 $(RM) -f '$@'; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2252 $(MV) '$@.temp' '$@'; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2253 $(TOUCH) '$@'; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2254 $(call copy-with-logging,$@,$(BINARY_TARGET_DIR)); \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2255 else \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2256 $(CAT) $@.log; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2257 $(call remove-temporary-files,'$@.temp'); \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2258 $(sh_false); \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2259 fi |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2260 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2261 .SECONDARY: $(all_ps_targets) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2262 %.ps: %.dvi %.paper.make |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2263 $(QUIET)$(call echo-build,$<,$@) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2264 $(QUIET)$(call make-ps,$<,$@.temp,$@.log,\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2265 $(firstword $(shell $(CAT) $*.paper.make))); \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2266 if [ x"$$?" = x"0" ]; then \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2267 $(if $(VERBOSE),$(CAT) $@.log,:); \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2268 $(RM) -f '$@'; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2269 $(MV) '$@.temp' '$@'; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2270 $(TOUCH) '$@'; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2271 $(call copy-with-logging,$@,$(BINARY_TARGET_DIR)); \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2272 else \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2273 $(CAT) $@.log; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2274 $(call remove-temporary-files,'$@.temp'); \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2275 $(sh_false); \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2276 fi |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2277 endif |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2278 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2279 # Build the final target (dvi or pdf) file. This is a very tricky rule because |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2280 # of the way that latex runs multiple times, needs graphics after the first run |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2281 # (or maybe already has them), and relies on bibliographies or indices that may |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2282 # not exist. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2283 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2284 # Check the log for fatal errors. If they exist, colorize and bail. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2285 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2286 # Create the .auxtarget.cookie file. (Needed for next time if not present) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2287 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2288 # If any of the following are true, we must rebuild at least one time: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2289 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2290 # * the .bbl was recently rebuilt |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2291 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2292 # check a cookie, then delete it |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2293 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2294 # * any of several output files was created or changed: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2295 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2296 # check $*.run.cookie, then delete it |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2297 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2298 # * the .aux file changed in a way that necessitates attention |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2299 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2300 # Note that if the .auxtarget.make file doesn't exist, this means |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2301 # that we are doing a clean build, so it doesn't figure into the |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2302 # test for running again. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2303 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2304 # compare against .auxtarget.make |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2305 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2306 # move if different, remove if not |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2307 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2308 # * the .log file has errors or warnings requiring at least one more run |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2309 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2310 # We use a loop over a single item to simplify the process of breaking |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2311 # out when we find one of the conditions to be true. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2312 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2313 # If we do NOT need to run latex here, then we move the $@.1st.make file |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2314 # over to $@ because the target file has already been built by the first |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2315 # dependency run and is valid. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2316 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2317 # If we do, we delete that cookie file and do the normal multiple-runs |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2318 # routine. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2319 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2320 ifneq "$(strip $(BUILD_STRATEGY))" "pdflatex" |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2321 .SECONDARY: $(all_dvi_targets) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2322 endif |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2323 %.$(build_target_extension): %.bbl %.aux %.$(build_target_extension).1st.make |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2324 $(QUIET)\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2325 fatal=`$(call colorize-latex-errors,$*.log)`; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2326 if [ x"$$fatal" != x"" ]; then \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2327 $(ECHO) "$$fatal"; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2328 exit 1; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2329 fi; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2330 $(call make-auxtarget-file,$*.aux.make,$*.auxtarget.cookie); \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2331 run=0; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2332 for i in 1; do \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2333 if $(call test-exists,$*.bbl.cookie); then \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2334 run=1; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2335 break; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2336 fi; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2337 if $(call test-exists,$*.run.cookie); then \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2338 run=1; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2339 break; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2340 fi; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2341 if $(call \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2342 test-exists-and-different,$*.auxtarget.cookie,$*.auxtarget.make);\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2343 then \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2344 run=1; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2345 break; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2346 fi; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2347 if $(call test-log-for-need-to-run,$*); then \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2348 run=1; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2349 break; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2350 fi; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2351 done; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2352 $(call remove-temporary-files,$*.bbl.cookie $*.run.cookie); \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2353 $(MV) $*.auxtarget.cookie $*.auxtarget.make; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2354 if [ x"$$run" = x"1" ]; then \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2355 $(call remove-files,$@.1st.make); \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2356 for i in 2 3 4 5; do \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2357 $(if $(findstring 3.79,$(MAKE_VERSION)),\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2358 $(call echo-build,$*.tex,$@,$(RESTARTS)-$$$$i),\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2359 $(call echo-build,$*.tex,$@,$(RESTARTS)-$$i)\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2360 ); \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2361 $(call run-latex,$*); \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2362 $(CP) '$*.log' '$*.'$(RESTARTS)-$$i'.log'; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2363 $(call test-run-again,$*) || break; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2364 done; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2365 else \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2366 $(MV) '$@.1st.make' '$@'; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2367 fi; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2368 $(call copy-with-logging,$@,$(BINARY_TARGET_DIR)); \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2369 $(call latex-color-log,$*) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2370 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2371 # Build the .bbl file. When dependencies are included, this will (or will |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2372 # not!) depend on something.bib, which we detect, acting accordingly. The |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2373 # dependency creation also produces the %.auxbbl.make file. BibTeX is a bit |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2374 # finicky about what you call the actual files, but we can rest assured that if |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2375 # a .auxbbl.make file exists, then the .aux file does, as well. The |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2376 # .auxbbl.make file is a cookie indicating whether the .bbl needs to be |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2377 # rewritten. It only changes if the .aux file changes in ways relevant to .bbl |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2378 # creation. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2379 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2380 # Note that we do NOT touch the .bbl file if there is no need to |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2381 # create/recreate it. We would like to leave existing files alone if they |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2382 # don't need to be changed, thus possibly avoiding a rebuild trigger. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2383 %.bbl: %.auxbbl.make |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2384 $(QUIET)\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2385 $(if $(filter %.bib,$^),\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2386 $(call echo-build,$(filter %.bib,$?) $*.aux,$@); \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2387 $(call run-bibtex,$*); \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2388 $(TOUCH) $@.cookie; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2389 ) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2390 if $(EGREP) -q 'bibstyle.(apacann|chcagoa|[^}]*annot)' '$*.aux'; then \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2391 $(call echo-build,** annotated extra latex **,output ignored,$(RESTARTS)-1); \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2392 $(call run-latex,$*); \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2393 $(CP) '$*.log' '$*.$(RESTARTS)-annotated.log'; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2394 $(if $(filter %.bib,$^),\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2395 $(call echo-build,** annotated extra bibtex ** $(filter %.bib,$?) $*.aux,$@); \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2396 $(call run-bibtex,$*); \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2397 $(TOUCH) $@.cookie; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2398 ) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2399 $(call echo-build,** annotated extra latex **,output ignored,$(RESTARTS)-2); \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2400 $(call run-latex,$*); \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2401 fi |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2402 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2403 # Create the index file - note that we do *not* depend on %.tex here, since |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2404 # that unnecessarily restricts the kinds of indices that we can build to those |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2405 # with exactly the same stem as the source file. Things like splitidx create |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2406 # idx files with other names. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2407 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2408 # Therefore, we add the .tex dependency in the sourcestem.d file in the call to |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2409 # get index file dependencies from the logs. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2410 %.ind: %.idx |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2411 $(QUIET)$(call echo-build,$<,$@) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2412 $(QUIET)$(call run-makeindex,$<,$@,$*.ilg) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2413 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2414 # Create the glossary file |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2415 %.gls: %.glo %.tex |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2416 $(QUIET)$(call echo-build,$<,$@) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2417 $(QUIET)$(call run-makeindex,$<,$@,$*.glg,-s nomencl.ist) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2418 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2419 # Create the nomenclature file |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2420 %.nls: %.nlo %.tex |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2421 $(QUIET)$(call echo-build,$<,$@) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2422 $(QUIET)$(call run-makeindex,$<,$@,$*.nlg,-s nomencl.ist) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2423 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2424 # SCRIPTED LaTeX TARGETS |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2425 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2426 # Keep the generated .tex files around for debugging if needed. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2427 .SECONDARY: $(all_tex_targets) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2428 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2429 %.tex:: %.tex.sh |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2430 $(QUIET)$(call run-script,$(SHELL),$<,$@) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2431 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2432 %.tex:: %.tex.py |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2433 $(QUIET)$(call run-script,$(PYTHON),$<,$@) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2434 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2435 %.tex:: %.tex.pl |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2436 $(QUIET)$(call run-script,$(PERL),$<,$@) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2437 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2438 %.tex:: %.rst $(RST_STYLE_FILE) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2439 $(QUIET)\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2440 $(call run-script,$(RST2LATEX)\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2441 --documentoptions=letterpaper\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2442 $(if $(RST_STYLE_FILE),--stylesheet=$(RST_STYLE_FILE),),$<,$@) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2443 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2444 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2445 # GRAPHICS TARGETS |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2446 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2447 .PHONY: all-graphics |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2448 all-graphics: $(all_graphics_targets); |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2449 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2450 ifneq "$(strip $(BUILD_STRATEGY))" "pdflatex" |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2451 .PHONY: all-pstex |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2452 all-pstex: $(all_pstex_targets); |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2453 endif |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2454 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2455 .PHONY: all-dot2tex |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2456 all-dot2tex: $(all_dot2tex_targets); |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2457 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2458 .PHONY: show-graphics |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2459 show-graphics: all-graphics |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2460 $(VIEW_GRAPHICS) $(all_known_graphics) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2461 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2462 $(gray_eps_file): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2463 $(QUIET)$(call echo-build,$^,$@) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2464 $(QUIET)$(call create-gray-eps-file,$@) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2465 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2466 ifeq "$(strip $(BUILD_STRATEGY))" "pdflatex" |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2467 %.pdf: %.eps $(if $(GRAY),$(gray_eps_file)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2468 $(QUIET)$(call echo-graphic,$^,$@) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2469 $(QUIET)$(call convert-eps-to-pdf,$<,$@,$(GRAY)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2470 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2471 ifeq "$(strip $(GNUPLOT_OUTPUT_EXTENSION))" "pdf" |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2472 %.pdf: %.gpi %.gpi.d $(gpi_sed) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2473 $(QUIET)$(call echo-graphic,$^,$@) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2474 $(QUIET)$(call convert-gpi,$<,$@,$(GRAY)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2475 endif |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2476 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2477 %.pdf: %.fig |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2478 $(QUIET)$(call echo-graphic,$^,$@) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2479 $(QUIET)$(call convert-fig,$<,$@,$(GRAY)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2480 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2481 endif |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2482 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2483 %.eps: %.gpi %.gpi.d $(gpi_sed) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2484 $(QUIET)$(call echo-graphic,$^,$@) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2485 $(QUIET)$(call convert-gpi,$<,$@,$(GRAY)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2486 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2487 %.eps: %.fig |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2488 $(QUIET)$(call echo-graphic,$^,$@) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2489 $(QUIET)$(call convert-fig,$<,$@,$(GRAY)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2490 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2491 %.eps: %.dot $(if $(GRAY),$(gray_eps_file)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2492 $(QUIET)$(call echo-graphic,$^,$@) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2493 $(QUIET)$(call convert-dot,$<,$@,$<.log,$(GRAY)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2494 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2495 %.eps: %.xvg $(if $(GRAY),$(gray_eps_file)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2496 $(QUIET)$(call echo-graphic,$^,$@) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2497 $(QUIET)$(call convert-xvg,$<,$@,$(GRAY)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2498 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2499 %.eps: %.svg $(if $(GRAY),$(gray_eps_file)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2500 $(QUIET)$(call echo-graphic,$^,$@) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2501 $(QUIET)$(call convert-svg,$<,$@,$(GRAY)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2502 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2503 %.eps: %.jpg $(if $(GRAY),$(gray_eps_file)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2504 $(QUIET)$(call echo-graphic,$^,$@) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2505 $(QUIET)$(call convert-jpg,$<,$@,$(GRAY)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2506 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2507 %.eps: %.png $(if $(GRAY),$(gray_eps_file)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2508 $(QUIET)$(call echo-graphic,$^,$@) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2509 $(QUIET)$(call convert-png,$<,$@,$(GRAY)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2510 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2511 %.eps: %.eps.gz $(if $(GRAY),$(gray_eps_file)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2512 $(QUIET)$(call echo-graphic,$^,$@) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2513 $(QUIET)$(call convert-epsgz,$<,$@,$(GRAY)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2514 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2515 %.pstex: %.fig |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2516 $(QUIET)$(call echo-graphic,$^,$@) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2517 $(QUIET)$(call convert-fig-pstex,$<,$@,$(GRAY)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2518 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2519 %.pstex_t: %.fig %.pstex |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2520 $(QUIET)$(call echo-graphic,$^,$@) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2521 $(QUIET)$(call convert-fig-pstex-t,$<,$@,$*.pstex,$(GRAY)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2522 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2523 %.dot_t: %.dot |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2524 $(QUIET)$(call echo-graphic,$^,$@) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2525 $(QUIET)$(call convert-dot-tex,$<,$@) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2526 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2527 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2528 # DEPENDENCY-RELATED TARGETS. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2529 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2530 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2531 # Generate all of the information needed to get dependencies |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2532 # As a side effect, this creates a .dvi or .pdf file (depending on the build |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2533 # strategy). We need to be sure to remove it if there are errors. Errors can |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2534 # take several forms and all of them are found within the log file: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2535 # * There was a LaTeX error |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2536 # * A needed file was not found |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2537 # * Cross references need adjustment |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2538 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2539 # Behavior: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2540 # This rule is responsible for generating the following: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2541 # %.aux |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2542 # %.d |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2543 # %.aux.make |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2544 # %.(pdf|dvi).1st.make (the .pdf or .dvi output file, moved) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2545 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2546 # Steps: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2547 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2548 # Run latex |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2549 # Move .pdf or .dvi somewhere else (make no judgements about success) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2550 # Flatten the .aux file into another file |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2551 # Add source dependencies |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2552 # Add graphic dependencies |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2553 # Add bib dependencies |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2554 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2555 # Create cookies for various suffixes that may represent files that |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2556 # need to be read by LaTeX in order for it to function properly. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2557 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2558 # Note that if some of the dependencies are discovered because they turn |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2559 # up missing in the log file, we really need the .d file to be reloaded. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2560 # Adding a sleep command helps with this. Otherwise make is extremely |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2561 # nondeterministic, sometimes working, sometimes not. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2562 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2563 # Usually we can force this by simply removing the generated pdf file and |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2564 # not creating a .1st.make file.. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2565 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2566 %.$(build_target_extension).1st.make %.d %.aux %.aux.make %.fls: %.tex |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2567 $(QUIET)$(call echo-build,$<,$*.d $*.$(build_target_extension).1st.make,$(RESTARTS)-1) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2568 $(QUIET)\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2569 $(call run-latex,$<,--recorder) || $(sh_true); \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2570 $(CP) '$*.log' '$*.$(RESTARTS)-1.log'; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2571 $(call die-on-dot2tex,$*.log); \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2572 $(call die-on-no-aux,$*); \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2573 $(call flatten-aux,$*.aux,$*.aux.make); \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2574 $(ECHO) "# vim: ft=make" > $*.d; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2575 $(ECHO) ".PHONY: $*._graphics" >> $*.d; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2576 $(call get-inputs,$*.fls,$(addprefix $*.,aux aux.make d $(build_target_extension))) >> $*.d; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2577 $(call get-missing-inputs,$*.log,$(addprefix $*.,aux aux.make d $(build_target_extension))) >> $*.d; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2578 $(ECHO) ".SECONDEXPANSION:" >> $*.d; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2579 $(call get-graphics,$*) >> $*.d; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2580 $(call get-log-index,$*,$(addprefix $*.,d aux aux.make)) >> $*.d; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2581 $(call get-bibs,$*.aux.make,$(addprefix $*.,bbl aux aux.make)) >> $*.d; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2582 $(EGREP) -q "# MISSING" $*.d && $(SLEEP) 1 && $(RM) $*.pdf; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2583 $(call move-if-exists,$*.$(build_target_extension),$*.$(build_target_extension).1st.make); \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2584 for s in toc out lot lof lol nav; do \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2585 if [ -e "$*.$$s" ]; then \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2586 if ! $(DIFF) -q $*.$$s $*.$$s.make >/dev/null 2>&1; then \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2587 $(TOUCH) $*.run.cookie; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2588 fi; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2589 $(CP) $*.$$s $*.$$s.make; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2590 fi; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2591 done |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2592 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2593 # This is a cookie that is updated if the flattened aux file has changed in a |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2594 # way that affects the bibliography generation. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2595 .SECONDARY: $(addsuffix .auxbbl.make,$(stems_ssg)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2596 %.auxbbl.make: %.aux.make |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2597 $(QUIET)\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2598 $(call make-auxbbl-file,$<,$@.temp); \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2599 $(call replace-if-different-and-remove,$@.temp,$@) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2600 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2601 # Build a dependency file for .gpi files. These often plot data files that |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2602 # also reside in the directory, so if a data file changes, it's nice to know |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2603 # about it. This also handles loaded .gpi files, whose filename should have |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2604 # _include_. in it. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2605 %.gpi.d: %.gpi |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2606 $(QUIET)$(call echo-build,$<,$@) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2607 $(QUIET)$(call make-gpi-d,$<,$@) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2608 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2609 # Store the paper size for this document -- note that if beamer is used we set |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2610 # it to the special BEAMER paper size. We only do this, however, if the |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2611 # special comment exists, in which case we enlarge the output with psnup. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2612 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2613 # The paper size is extracted from a documentclass attribute. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2614 %.paper.make: %.tex |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2615 $(QUIET)$(SED) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2616 -e '/\\documentclass/,/}/{' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2617 -e ' s/%.*//' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2618 -e ' H' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2619 -e ' /}/{' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2620 -e ' s/.*//' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2621 -e ' x' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2622 -e ' /\\documentclass/!d' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2623 -e ' s/[\n[:space:]]*//g' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2624 -e ' s/\([,{[]\)\([[:alnum:]]\{1,\}\)paper\([],}]\)/\1%-\2-%\3/g' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2625 -e ' s/\([,{[]\)\(landscape\)\([],}]\)/\1%-\2-%\3/g' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2626 -e ' s/^[^%]*%-//' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2627 -e ' s/-%[^%]*$$//' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2628 -e ' s/-%[^%]%-/ /g' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2629 -e ' p' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2630 -e ' }' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2631 -e ' d' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2632 -e '}' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2633 -e 'd' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2634 $< > $@; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2635 $(EGREP) -q '^[^%]*\\documentclass[^{]*{beamer}' $< && \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2636 (\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2637 $(EGREP) -q '^%%[[:space:]]*BEAMER[[:space:]]*LARGE$$' $< && \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2638 $(ECHO) "BEAMER" > $@ || \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2639 : > $@ \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2640 ) || $(sh_true) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2641 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2642 # Store embedding instructions for this document using a special comment |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2643 %.embed.make: %.tex |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2644 $(QUIET)$(EGREP) '^%%[[:space:]]*NO[[:space:]]*EMBED[[:space:]]*$$' $< \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2645 && $(ECHO) '' > $@ \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2646 || $(ECHO) '1' > $@; |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2647 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2648 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2649 # HELPFUL PHONY TARGETS |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2650 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2651 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2652 .PHONY: _all_programs |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2653 _all_programs: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2654 $(QUIET)$(ECHO) "== All External Programs Used ==" |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2655 $(QUIET)$(call output-all-programs) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2656 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2657 .PHONY: _check_programs |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2658 _check_programs: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2659 $(QUIET)$(ECHO) "== Checking Makefile Dependencies =="; $(ECHO) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2660 $(QUIET) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2661 $(ECHO) hi; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2662 allprogs=`\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2663 ($(call output-all-programs)) | \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2664 $(SED) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2665 -e 's/^[[:space:]]*//' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2666 -e '/^#/d' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2667 -e 's/[[:space:]]*#.*//' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2668 -e '/^=/s/[[:space:]]/_/g' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2669 -e '/^[[:space:]]*$$/d' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2670 -e 's/^[^=].*=[[:space:]]*\([^[:space:]]\{1,\}\).*$$/\\1/' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2671 `; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2672 spaces=' '; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2673 for p in $${allprogs}; do \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2674 case $$p in \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2675 =*) $(ECHO); $(ECHO) "$$p";; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2676 *) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2677 $(ECHO) -n "$$p:$$spaces" | $(SED) -e 's/^\(.\{0,20\}\).*$$/\1/'; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2678 loc=`$(WHICH) $$p`; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2679 if [ x"$$?" = x"0" ]; then \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2680 $(ECHO) "$(C_SUCCESS)Found:$(C_RESET) $$loc"; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2681 else \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2682 $(ECHO) "$(C_FAILURE)Not Found$(C_RESET)"; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2683 fi; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2684 ;; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2685 esac; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2686 done |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2687 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2688 .PHONY: _check_gpi_files |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2689 _check_gpi_files: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2690 $(QUIET)$(ECHO) "== Checking all .gpi files for common errors =="; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2691 $(ECHO); \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2692 for f in $(files.gpi); do \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2693 result=`$(EGREP) '^([^#]*set terminal |set output )' $$f`; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2694 $(ECHO) -n "$$f: "; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2695 if [ x"$$result" = x"" ]; then \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2696 $(ECHO) "$(C_SUCCESS)Okay$(C_RESET)"; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2697 else \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2698 $(ECHO) "$(C_FAILURE)Warning: Problematic commands:$(C_RESET)";\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2699 $(ECHO) "$(C_ERROR)$$result$(C_RESET)"; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2700 fi; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2701 done; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2702 $(ECHO) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2703 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2704 .PHONY: _all_stems |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2705 _all_stems: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2706 $(QUIET)$(ECHO) "== All Stems ==" |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2707 $(QUIET)$(call echo-list,$(sort $(default_stems_ss))) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2708 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2709 .PHONY: _includes |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2710 _includes: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2711 $(QUIET)$(ECHO) "== Include Stems ==" |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2712 $(QUIET)$(ECHO) "=== Sources ===" |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2713 $(QUIET)$(call echo-list,$(sort $(source_includes))) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2714 $(QUIET)$(ECHO) "=== Graphics ===" |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2715 $(QUIET)$(call echo-list,$(sort $(graphic_includes))) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2716 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2717 .PHONY: _all_sources |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2718 _all_sources: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2719 $(QUIET)$(ECHO) "== All Sources ==" |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2720 $(QUIET)$(call echo-list,$(sort $(all_files.tex))) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2721 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2722 .PHONY: _dependency_graph |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2723 _dependency_graph: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2724 $(QUIET)$(ECHO) "/* LaTeX Dependency Graph */" |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2725 $(QUIET)$(call output-dependency-graph) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2726 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2727 .PHONY: _show_dependency_graph |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2728 _show_dependency_graph: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2729 $(QUIET)$(call output-dependency-graph,$(graph_stem).dot) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2730 $(QUIET)$(DOT) -Tps -o $(graph_stem).eps $(graph_stem).dot |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2731 $(QUIET)$(VIEW_POSTSCRIPT) $(graph_stem).eps |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2732 $(QUIET)$(call remove-temporary-files,$(graph_stem).*) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2733 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2734 .PHONY: _sources |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2735 _sources: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2736 $(QUIET)$(ECHO) "== Sources ==" |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2737 $(QUIET)$(call echo-list,$(sort $(files.tex))) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2738 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2739 .PHONY: _scripts |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2740 _scripts: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2741 $(QUIET)$(ECHO) "== Scripts ==" |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2742 $(QUIET)$(call echo-list,$(sort $(files_scripts))) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2743 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2744 .PHONY: _graphic_outputs |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2745 _graphic_outputs: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2746 $(QUIET)$(ECHO) "== Graphic Outputs ==" |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2747 $(QUIET)$(call echo-list,$(sort $(all_graphics_targets))) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2748 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2749 .PHONY: _env |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2750 _env: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2751 ifdef .VARIABLES |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2752 $(QUIET)$(ECHO) "== MAKE VARIABLES ==" |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2753 $(QUIET)$(call echo-list,$(foreach var,$(sort $(.VARIABLES)),'$(var)')) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2754 endif |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2755 $(QUIET)$(ECHO) "== ENVIRONMENT ==" |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2756 $(QUIET)$(ENV) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2757 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2758 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2759 # CLEAN TARGETS |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2760 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2761 # clean-generated is somewhat unique - it relies on the .fls file being |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2762 # properly built so that it can determine which of the files was generated, and |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2763 # which was not. Expect it to silently fail if the .fls file is missing. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2764 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2765 # This is used to, e.g., clean up index files that are generated by the LaTeX. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2766 .PHONY: clean-generated |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2767 clean-generated: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2768 $(QUIET)$(call clean-files,$(foreach e,$(addsuffix .fls,$(all_stems_source)),\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2769 $(shell $(call get-generated-names,$e)))) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2770 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2771 .PHONY: clean-deps |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2772 clean-deps: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2773 $(QUIET)$(call clean-files,$(all_d_targets) *.make *.make.temp *.cookie) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2774 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2775 .PHONY: clean-tex |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2776 clean-tex: clean-deps |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2777 $(QUIET)$(call clean-files,$(rm_tex)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2778 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2779 .PHONY: clean-graphics |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2780 # TODO: This *always* deletes pstex files, even if they were not generated by |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2781 # anything.... In other words, if you create a pstex and pstex_t pair by hand |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2782 # an drop them in here without the generating fig file, they will be deleted |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2783 # and you won't get them back. It's a hack put in here because I'm not sure we |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2784 # even want to keep pstex functionality, so my motivation is not terribly high |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2785 # for doing it right. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2786 clean-graphics: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2787 $(QUIET)$(call clean-files,$(all_graphics_targets) $(intermediate_graphics_targets) *.gpi.d *.pstex *.pstex_t *.dot_t) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2788 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2789 .PHONY: clean-backups |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2790 clean-backups: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2791 $(QUIET)$(call clean-files,$(backup_patterns) *.temp) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2792 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2793 .PHONY: clean-auxiliary |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2794 clean-auxiliary: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2795 $(QUIET)$(call clean-files,$(graph_stem).*) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2796 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2797 .PHONY: clean-nographics |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2798 clean-nographics: clean-tex clean-deps clean-backups clean-auxiliary ; |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2799 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2800 .PHONY: clean |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2801 clean: clean-generated clean-tex clean-graphics clean-deps clean-backups clean-auxiliary |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2802 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2803 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2804 # HELP TARGETS |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2805 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2806 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2807 .PHONY: help |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2808 help: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2809 $(help_text) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2810 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2811 .PHONY: version |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2812 version: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2813 $(QUIET)\ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2814 $(ECHO) "$(fileinfo) Version $(version)"; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2815 $(ECHO) "by $(author)"; \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2816 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2817 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2818 # HELP TEXT |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2819 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2820 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2821 define help_text |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2822 # $(fileinfo) Version $(version) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2823 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2824 # by $(author) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2825 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2826 # Generates a number of possible output files from a LaTeX document and its |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2827 # various dependencies. Handles .bib files, \include and \input, and .eps |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2828 # graphics. All dependencies are handled automatically by running LaTeX over |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2829 # the source. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2830 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2831 # USAGE: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2832 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2833 # make [GRAY=1] [VERBOSE=1] [SHELL_DEBUG=1] <target(s)> |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2834 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2835 # STANDARD OPTIONS: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2836 # GRAY: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2837 # Setting this variable forces all recompiled graphics to be grayscale. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2838 # It is useful when creating a document for printing. The default is |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2839 # to allow colors. Note that it only changes graphics that need to be |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2840 # rebuilt! It is usually a good idea to do a 'make clean' first. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2841 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2842 # VERBOSE: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2843 # This turns off all @ prefixes for commands invoked by make. Thus, |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2844 # you get to see all of the gory details of what is going on. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2845 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2846 # SHELL_DEBUG: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2847 # This enables the -x option for sh, meaning that everything it does is |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2848 # echoed to stderr. This is particularly useful for debugging |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2849 # what is going on in $$(shell ...) invocations. One of my favorite |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2850 # debugging tricks is to do this: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2851 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2852 # make -d SHELL_DEBUG=1 VERBOSE=1 2>&1 | less |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2853 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2854 # STANDARD AUXILIARY FILES: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2855 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2856 # Makefile.ini |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2857 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2858 # This file can contain variable declarations that override various |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2859 # aspects of the makefile. For example, one might specify |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2860 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2861 # neverclean := *.pdf *.ps |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2862 # onlysources.tex := main.tex |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2863 # LATEX_COLOR_WARNING := 'bold red uline' |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2864 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2865 # And this would override the neverclean setting to ensure that pdf |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2866 # and ps files always remain behind, set the makefile to treat all |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2867 # .tex files that are not "main.tex" as includes (and therefore not |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2868 # default targets). It also changes the LaTeX warning output to be |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2869 # red, bold, and underlined. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2870 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2871 # There are numerous variables in this file that can be overridden in |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2872 # this way. Search for '?=' to find them all. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2873 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2874 # Also, you can put arbitrary targets into it if, for example, you |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2875 # want your source built from something else, e.g.: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2876 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2877 # generated.tex: generating_script.weird_lang depA depB |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2878 # ./generating_script.weird_lang > $$@ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2879 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2880 # Note that if you are not careful, you can override the default |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2881 # target (what happens when you type "make" without arguments), so if |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2882 # you do use Makefile.ini, you probably want to start it with |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2883 # something like the following line: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2884 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2885 # default: all |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2886 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2887 # Since the first target in any makefile is automatically the default, |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2888 # and the makefile already has a sensible "all" target, this will do |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2889 # what you want. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2890 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2891 # The Makefile.ini is imported before *anything else* is done, so go |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2892 # wild with your ideas for changes to this makefile in there. It |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2893 # makes it easy to test them before submitting patches. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2894 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2895 # STANDARD ENVIRONMENT VARIABLES: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2896 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2897 # LATEX_COLOR_WARNING '$(LATEX_COLOR_WARNING)' |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2898 # LATEX_COLOR_ERROR '$(LATEX_COLOR_ERROR)' |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2899 # LATEX_COLOR_UNDERFULL '$(LATEX_COLOR_UNDERFULL)' |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2900 # LATEX_COLOR_OVERFULL '$(LATEX_COLOR_OVERFULL)' |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2901 # LATEX_COLOR_PAGES '$(LATEX_COLOR_PAGES)' |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2902 # LATEX_COLOR_BUILD '$(LATEX_COLOR_BUILD)' |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2903 # LATEX_COLOR_GRAPHIC '$(LATEX_COLOR_GRAPHIC)' |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2904 # LATEX_COLOR_DEP '$(LATEX_COLOR_DEP)' |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2905 # LATEX_COLOR_SUCCESS '$(LATEX_COLOR_SUCCESS)' |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2906 # LATEX_COLOR_FAILURE '$(LATEX_COLOR_FAILURE)' |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2907 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2908 # These may be redefined in your environment to be any of the following: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2909 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2910 # black |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2911 # red |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2912 # green |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2913 # yellow |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2914 # blue |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2915 # magenta |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2916 # cyan |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2917 # white |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2918 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2919 # Bold or underline may be used, as well, either alone or in combination |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2920 # with colors: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2921 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2922 # bold |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2923 # uline |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2924 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2925 # Order is not important. You may want, for example, to specify: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2926 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2927 # export LATEX_COLOR_SUCCESS='bold blue uline' |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2928 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2929 # in your .bashrc file. I don't know why, but you may want to. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2930 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2931 # STANDARD TARGETS: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2932 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2933 # all: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2934 # Make all possible documents in this directory. The documents are |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2935 # determined by scanning for .tex and .tex.sh (described in more detail |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2936 # later) and omitting any file that ends in ._include_.tex or |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2937 # ._nobuild_.tex. The output is a set of .pdf files. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2938 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2939 # If you wish to omit files without naming them with the special |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2940 # underscore names, set the following near the top of the Makefile, |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2941 # or (this is recommended) within a Makefile.ini in the same directory: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2942 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2943 # includes.tex := file1.tex file2.tex |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2944 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2945 # This will cause the files listed to be considered as include files. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2946 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2947 # If you have only few source files, you can set |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2948 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2949 # onlysources.tex := main.tex |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2950 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2951 # This will cause only the source files listed to be considered in |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2952 # dependency detection. All other .tex files will be considered as |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2953 # include files. Note that these options work for *any* source type, |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2954 # so you could do something similar with includes.gpi, for example. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2955 # Note that this works for *any valid source* target. All of the |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2956 # onlysources.* variables are commented out in the shipping version of |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2957 # this file, so it does the right thing when they simply don't exist. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2958 # The comments are purely documentation. If you know, for example, that |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2959 # file.mycoolformat is supported by this Makefile, but don't see the |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2960 # "onlysources.mycoolformat" declared in the comments, that doesn't mean |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2961 # you can't use it. Go ahead and set "onlysources.mycoolformat" and it |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2962 # should do the right thing. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2963 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2964 # show: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2965 # Builds and displays all documents in this directory. It uses the |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2966 # environment-overridable value of VIEW_PDF (currently $(VIEW_PDF)) to |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2967 # do its work. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2968 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2969 # all-graphics: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2970 # Make all of the graphics in this directory. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2971 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2972 # all-pstex (only for BUILD_STRATEGY=latex): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2973 # Build all fig files into pstex and pstex_t files. Gray DOES NOT WORK. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2974 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2975 # all-gray-pstex (only for BUILD_STRATEGY=latex): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2976 # Build all fig files into grayscale pstex and pstex_t files. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2977 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2978 # all-dot2tex: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2979 # Build all dot files into tex files. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2980 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2981 # show-graphics: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2982 # Builds and displays all graphics in this directory. Uses the |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2983 # environment-overridable value of VIEW_GRAPHICS (currently |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2984 # $(VIEW_GRAPHICS)) to do its work. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2985 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2986 # clean: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2987 # Remove ALL generated files, leaving only source intact. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2988 # This will *always* skip files mentioned in the "neverclean" variable, |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2989 # either in this file or specified in Makefile.ini: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2990 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2991 # neverclean := *.pdf *.ps |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2992 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2993 # The neverclean variable works on all "clean" targets below, as well. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2994 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2995 # clean-graphics: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2996 # Remove all generated graphics files. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2997 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2998 # clean-backups: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
2999 # Remove all backup files: $(backup_patterns) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3000 # (XFig and other editors have a nasty habit of leaving them around) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3001 # Also removes Makefile-generated .temp files |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3002 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3003 # clean-tex: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3004 # Remove all files generated from LaTeX invocations except dependency |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3005 # information. Leaves graphics alone. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3006 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3007 # clean-deps: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3008 # Removes all auto-generated dependency information. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3009 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3010 # clean-auxiliary: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3011 # Removes extra files created by various targets (like the dependency |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3012 # graph output). |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3013 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3014 # clean-nographics: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3015 # Cleans everything *except* the graphics files. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3016 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3017 # help: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3018 # This help text. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3019 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3020 # version: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3021 # Version information about this LaTeX makefile. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3022 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3023 # DEBUG TARGETS: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3024 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3025 # _all_programs: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3026 # A list of the programs used by this makefile. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3027 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3028 # _check_programs: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3029 # Checks your system for the needed software and reports what it finds. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3030 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3031 # _check_gpi_files: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3032 # Checks the .gpi files in the current directory for common errors, such |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3033 # as specification of the terminal or output file inside of the gpi file |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3034 # itself. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3035 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3036 # _dependency_graph: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3037 # Outputs a .dot file to stdout that represents a graph of LaTeX |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3038 # dependencies. To see it, use the _show_dependency_graph target or |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3039 # direct the output to a file, run dot on it, and view the output, e.g.: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3040 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3041 # make _dependency_graph > graph.dot |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3042 # dot -T ps -o graph.eps graph.dot |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3043 # gv graph.eps |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3044 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3045 # _show_dependency_graph: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3046 # Makes viewing the graph simple: extracts, builds and displays the |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3047 # dependency graph given in the _dependency_graph target using the value |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3048 # of the environment-overridable VIEW_POSTSCRIPT variable (currently set |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3049 # to $(VIEW_POSTSCRIPT)). The postscript viewer is used because it |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3050 # makes it easier to zoom in on the graph, a critical ability for |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3051 # something so dense and mysterious. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3052 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3053 # _all_sources: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3054 # List all .tex files in this directory. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3055 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3056 # _sources: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3057 # Print out a list of all compilable sources in this directory. This is |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3058 # useful for determining what make thinks it will be using as the |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3059 # primary source for 'make all'. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3060 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3061 # _scripts: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3062 # Print out a list of scripts that make knows can be used to generate |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3063 # .tex files (described later). |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3064 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3065 # _all_stems: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3066 # Print a list of stems. These represent bare targets that can be |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3067 # executed. Listing <stem> as a bare target will produce <stem>.pdf. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3068 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3069 # _includes: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3070 # A list of .d files that would be included in this run if _includes |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3071 # weren't specified. This target may be used alone or in conjunction |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3072 # with other targets. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3073 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3074 # _graphic_outputs: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3075 # A list of all generated .eps files |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3076 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3077 # _env: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3078 # A list of environment variables and their values. If supported by |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3079 # your version of make, also a list of variables known to make. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3080 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3081 # FILE TARGETS: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3082 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3083 # %, %.pdf: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3084 # Build a PDF file from the corresponding %.tex file. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3085 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3086 # If BUILD_STRATEGY=pdflatex, then this builds the pdf directly. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3087 # Otherwise, it uses this old-school but effective approach: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3088 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3089 # latex -> dvips -> ps2pdf |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3090 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3091 # The BUILD_STRATEGY can be overridden in Makefile.ini in the same |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3092 # directory. The default is pdflatex. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3093 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3094 # Reasons for using latex -> dvips include the "psfrag" package, and the |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3095 # generation of postscript instead of PDF. Arguments for using pdflatex |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3096 # include "new and shiny" and "better supported." I can't argue with |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3097 # either of those, and supporting them both didn't turn out to be that |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3098 # difficult, so there you have it. Choices. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3099 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3100 # %._show: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3101 # A phony target that builds the pdf file and then displays it using the |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3102 # environment-overridable value of VIEW_PDF ($(VIEW_PDF)). |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3103 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3104 # %._graphics: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3105 # A phony target that generates all graphics on which %.pdf (or %.dvi) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3106 # depends. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3107 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3108 # %.ps (only for BUILD_STRATEGY=latex): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3109 # Build a Postscript file from the corresponding %.tex file. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3110 # This is done using dvips. Paper size is automatically |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3111 # extracted from the declaration |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3112 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3113 # \documentclass[<something>paper] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3114 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3115 # or it is the system default. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3116 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3117 # If using beamer (an excellent presentation class), the paper |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3118 # size is ignored. More on this later. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3119 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3120 # %.dvi (only for BUILD_STRATEGY=latex): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3121 # Build the DVI file from the corresponding %.tex file. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3122 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3123 # %.ind: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3124 # Build the index for this %.tex file. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3125 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3126 # %.gls: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3127 # Build the nomenclature glossary for this %.tex file. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3128 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3129 # %.nls: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3130 # Build the (newer) nomenclature file for this %.tex file. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3131 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3132 # %.eps: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3133 # Build an eps file from one of the following file types: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3134 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3135 # .dot : graphviz |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3136 # .gpi : gnuplot |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3137 # .fig : xfig |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3138 # .xvg : xmgrace |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3139 # .svg : scalable vector graphics (goes through inkscape) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3140 # .png : png (goes through NetPBM) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3141 # .jpg : jpeg (goes through ImageMagick) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3142 # .eps.gz : gzipped eps |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3143 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3144 # The behavior of this makefile with each type is described in |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3145 # its own section below. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3146 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3147 # %.pstex{,_t} (only for BUILD_STRATEGY=latex): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3148 # Build a .pstex_t file from a .fig file. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3149 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3150 # FEATURES: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3151 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3152 # Optional Binary Directory: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3153 # If you create the _out_ directory in the same place as the makefile, |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3154 # it will automatically be used as a dumping ground for .pdf (or .dvi, |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3155 # .ps, and .pdf) output files. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3156 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3157 # Alternatively, you can set the BINARY_TARGET_DIR variable, either as a |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3158 # make argument or in Makefile.ini, to point to your directory of |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3159 # choice. Note that no pathname wildcard expansion is done in the |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3160 # makefile, so make sure that the path is complete before going in |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3161 # there. E.g., if you want to specify something in your home directory, |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3162 # use $$HOME/ instead of ~/ so that the shell expands it before it gets |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3163 # to the makefile. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3164 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3165 # External Program Dependencies: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3166 # Every external program used by the makefile is represented by an |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3167 # ALLCAPS variable at the top of this file. This should allow you to |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3168 # make judgments about whether your system supports the use of this |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3169 # makefile. The list is available in the ALL_PROGRAMS variable and, |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3170 # provided that you are using GNU make 3.80 or later (or you haven't |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3171 # renamed this file to something weird like "mylatexmakefile" and like |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3172 # invoking it with make -f) can be viewed using |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3173 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3174 # make _all_programs |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3175 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3176 # Additionally, the availability of these programs can be checked |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3177 # automatically for you by running |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3178 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3179 # make _check_programs |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3180 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3181 # The programs are categorized according to how important they are and |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3182 # what function they perform to help you decide which ones you really |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3183 # need. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3184 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3185 # Colorized Output: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3186 # The output of commands is colorized to highlight things that are often |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3187 # important to developers. This includes {underfull,overfull} |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3188 # {h,v}boxes, general LaTeX Errors, each stage of document building, and |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3189 # the number of pages in the final document. The colors are obtained |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3190 # using 'tput', so colorization should work pretty well on any terminal. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3191 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3192 # The colors can be customized very simply by setting any of the |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3193 # LATEX_COLOR_<CONTEXT> variables in your environment (see above). |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3194 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3195 # Predecessors to TeX Files: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3196 # Given a target <target>, if no <target>.tex file exists but a |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3197 # corresponding script or predecessor file exists, then appropriate |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3198 # action will be taken to generate the tex file. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3199 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3200 # Currently supported script or predecessor languages are: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3201 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3202 # sh: %.tex.sh |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3203 # perl: %.tex.pl |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3204 # python: %.tex.py |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3205 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3206 # Calls the script using the appropriate interpreter, assuming that |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3207 # its output is a .tex file. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3208 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3209 # The script is called thus: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3210 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3211 # <interpreter> <script file name> <target tex file> |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3212 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3213 # and therefore sees exactly one parameter: the name of the .tex |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3214 # file that it is to create. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3215 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3216 # Why does this feature exist? I ran into this while working on |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3217 # my paper dissertation. I wrote a huge bash script that used a |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3218 # lot of sed to bring together existing papers in LaTeX. It |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3219 # would have been nice had I had something like this to make my |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3220 # life easier, since as it stands I have to run the script and |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3221 # then build the document with make. This feature provides hooks |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3222 # for complicated stuff that you may want to do, but that I have |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3223 # not considered. It should work fine with included dependencies, |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3224 # too. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3225 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3226 # Scripts are run every time make is invoked. Some trickery is |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3227 # employed to make sure that multiple restarts of make don't cause |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3228 # them to be run again. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3229 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3230 # reST: %.rst |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3231 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3232 # Runs the reST to LaTeX converter to generate a .tex file |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3233 # If it finds a file names _rststyle_._include_.tex, uses it as |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3234 # the "stylesheet" option to rst2latex. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3235 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3236 # Note that this does not track sub-dependencies in rst files. It |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3237 # assumes that the top-level rst file will change if you want a |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3238 # rebuild. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3239 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3240 # Dependencies: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3241 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3242 # In general, dependencies are extracted directly from LaTeX output on |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3243 # your document. This includes |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3244 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3245 # * Bibliography information |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3246 # * \include or \input files (honoring \includeonly, too) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3247 # * Graphics files inserted by the graphicx package |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3248 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3249 # Where possible, all of these are built correctly and automatically. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3250 # In the case of graphics files, these are generated from the following |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3251 # file types: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3252 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3253 # GraphViz: .dot |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3254 # GNUPlot: .gpi |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3255 # XFig: .fig |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3256 # XMgrace: .xvg |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3257 # SVG: .svg |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3258 # PNG: .png |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3259 # JPEG: .jpg |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3260 # GZipped EPS: .eps.gz |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3261 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3262 # If the file exists as a .eps already, it is merely used (and will not |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3263 # be deleted by 'clean'!). |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3264 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3265 # LaTeX and BibTeX are invoked correctly and the "Rerun to get |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3266 # cross-references right" warning is heeded a reasonable number of |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3267 # times. In my experience this is enough for even the most troublesome |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3268 # documents, but it can be easily changed (if LaTeX has to be run after |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3269 # BibTeX more than three times, it is likely that something is moving |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3270 # back and forth between pages, and no amount of LaTeXing will fix |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3271 # that). |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3272 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3273 # \includeonly is honored by this system, so files that are not |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3274 # specified there will not trigger a rebuild when changed. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3275 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3276 # Beamer: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3277 # A special TeX source comment is recognized by this makefile (only when |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3278 # BUILD_STRATEGY=latex, since this invokes psnup): |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3279 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3280 # %%[[:space:]]*BEAMER[[:space:]]*LARGE |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3281 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3282 # The presence of this comment forces the output of dvips through psnup |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3283 # to enlarge beamer slides to take up an entire letter-sized page. This |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3284 # is particularly useful when printing transparencies or paper versions |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3285 # of the slides. For some reason landscape orientation doesn't appear |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3286 # to work, though. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3287 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3288 # If you want to put multiple slides on a page, use this option and then |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3289 # print using mpage, a2ps, or psnup to consolidate slides. My personal |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3290 # favorite is a2ps, but your mileage may vary. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3291 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3292 # When beamer is the document class, dvips does NOT receive a paper size |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3293 # command line attribute, since beamer does special things with sizes. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3294 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3295 # GNUPlot Graphics: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3296 # When creating a .gpi file, DO NOT INCLUDE the "set terminal" or "set |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3297 # output" commands! The makefile will include terminal information for |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3298 # you. Besides being unnecessary and potentially harmful, including the |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3299 # terminal definition in the .gpi file makes it harder for you, the one |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3300 # writing the document, to preview your graphics, e.g., with |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3301 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3302 # gnuplot -persist myfile.gpi |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3303 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3304 # so don't do specify a terminal or an output file in your .gpi files. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3305 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3306 # When building a gpi file into an eps file, there are several features |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3307 # available to the document designer: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3308 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3309 # Global Header: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3310 # The makefile searches for the files in the variable GNUPLOT_GLOBAL |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3311 # in order: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3312 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3313 # ($(GNUPLOT_GLOBAL)) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3314 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3315 # Only the first found is used. All .gpi files in the directory are |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3316 # treated as though the contents of GNUPLOT_GLOBAL were directly |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3317 # included at the top of the file. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3318 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3319 # NOTE: This includes special comments! (see below) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3320 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3321 # Font Size: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3322 # A special comment in a .gpi file (or a globally included file) of |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3323 # the form |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3324 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3325 # ## FONTSIZE=<number> |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3326 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3327 # will change the font size of the GPI output. If font size is |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3328 # specified in both the global file and the GPI file, the |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3329 # specification in the individual GPI file is used. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3330 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3331 # Grayscale Output: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3332 # GNUplot files also support a special comment to force them to be |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3333 # output in grayscale *no matter what*: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3334 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3335 # ## GRAY |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3336 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3337 # This is not generally advisable, since you can always create a |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3338 # grayscale document using the forms mentioned above. But, if your |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3339 # plot simply must be grayscale even in a document that allows |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3340 # colors, this is how you do it. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3341 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3342 # XFig Graphics: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3343 # No special handling is done with XFig, except when a global |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3344 # grayscale method is used, e.g. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3345 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3346 # make GRAY=1 document |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3347 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3348 # In these cases the .eps files is created using the -N switch to |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3349 # fig2dev to turn off color output. (Only works with eps, not pstex |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3350 # output) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3351 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3352 # GraphVis Graphics: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3353 # Color settings are simply ignored here. The 'dot' program is used |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3354 # to transform a .dot file into a .eps file. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3355 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3356 # If you want, you can use the dot2tex program to convert dot files |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3357 # to tex graphics. The default is to just call dot2tex with no |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3358 # arguments, but you can change the DOT2TEX definition to include |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3359 # options as needed (in your Makefile.ini). |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3360 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3361 # Note that, as with pstex, the makefile cannot use latex's own |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3362 # output to discover all missing dot_t (output) files, since anytime |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3363 # TeX includes TeX, it has to bail when it can't find the include |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3364 # file. It can therefore only stop on the first missing file it |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3365 # discovers, and we can't get a large list of them out easily. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3366 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3367 # So, the makefile errors out if it's missing an included dot_t |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3368 # file, then prompts the user to run this command manually: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3369 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3370 # make all-dot2tex |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3371 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3372 # GZipped EPS Graphics: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3373 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3374 # A .eps.gz file is sometimes a nice thing to have. EPS files can get |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3375 # very large, especially when created from bitmaps (don't do this if you |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3376 # don't have to). This makefile will unzip them (not in place) to |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3377 # create the appropriate EPS file. |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3378 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3379 endef |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3380 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3381 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3382 # DEPENDENCY CHART: |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3383 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3384 #digraph "g" { |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3385 # rankdir=TB |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3386 # size="9,9" |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3387 # edge [fontsize=12 weight=10] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3388 # node [shape=box fontsize=14 style=rounded] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3389 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3390 # eps [ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3391 # shape=Mrecord |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3392 # label="{{<gpi> GNUplot|<epsgz> GZip|<dot> Dot|<fig> XFig}|<eps> eps}" |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3393 # ] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3394 # pstex [label="%.pstex"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3395 # pstex_t [label="%.pstex_t"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3396 # tex_outputs [shape=point] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3397 # extra_tex_files [shape=point] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3398 # gpi_data [label="<data>"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3399 # gpi_includes [label="_include_.gpi"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3400 # aux [label="%.aux"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3401 # fls [label="%.fls"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3402 # idx [label="%.idx"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3403 # glo [label="%.glo"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3404 # ind [label="%.ind"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3405 # log [label="%.log"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3406 # tex_sh [label="%.tex.sh"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3407 # rst [label="%.rst"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3408 # tex [ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3409 # shape=record |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3410 # label="<tex> %.tex|<include> _include_.tex" |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3411 # ] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3412 # include_aux [label="_include_.aux"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3413 # file_bib [label=".bib"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3414 # bbl [label="%.bbl"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3415 # dvi [label="%.dvi"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3416 # ps [label="%.ps"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3417 # pdf [label="%.pdf"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3418 # fig [label=".fig"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3419 # dot [label=".dot"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3420 # gpi [label=".gpi"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3421 # eps_gz [label=".eps.gz"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3422 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3423 # gpi_files [shape=point] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3424 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3425 # rst -> tex:tex [label="reST"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3426 # tex_sh -> tex:tex [label="sh"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3427 # tex_pl -> tex:tex [label="perl"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3428 # tex_py -> tex:tex [label="python"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3429 # tex -> tex_outputs [label="latex"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3430 # tex_outputs -> dvi |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3431 # tex_outputs -> aux |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3432 # tex_outputs -> log |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3433 # tex_outputs -> fls |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3434 # tex_outputs -> idx |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3435 # tex_outputs -> include_aux |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3436 # aux -> bbl [label="bibtex"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3437 # file_bib -> bbl [label="bibtex"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3438 # idx -> ind [label="makeindex"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3439 # glo -> gls [label="makeindex"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3440 # nlo -> nls [label="makeindex"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3441 # gls -> extra_tex_files |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3442 # nls -> extra_tex_files |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3443 # ind -> extra_tex_files |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3444 # bbl -> extra_tex_files |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3445 # eps -> extra_tex_files |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3446 # extra_tex_files -> dvi [label="latex"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3447 # gpi_files -> eps:gpi [label="gnuplot"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3448 # gpi -> gpi_files |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3449 # gpi_data -> gpi_files |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3450 # gpi_includes -> gpi_files |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3451 # eps_gz -> eps:epsgz [label="gunzip"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3452 # fig -> eps:fig [label="fig2dev"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3453 # fig -> pstex [label="fig2dev"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3454 # fig -> pstex_t [label="fig2dev"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3455 # pstex -> pstex_t [label="fig2dev"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3456 # dot -> eps:dot [label="dot"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3457 # dvi -> ps [label="dvips"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3458 # include_aux -> bbl [label="bibtex"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3459 # ps -> pdf [label="ps2pdf"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3460 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3461 # edge [ color=blue label="" style=dotted weight=1 fontcolor=blue] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3462 # fls -> tex:include [label="INPUT: *.tex"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3463 # fls -> file_bib [label="INPUT: *.aux"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3464 # aux -> file_bib [label="\\bibdata{...}"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3465 # include_aux -> file_bib [label="\\bibdata{...}"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3466 # log -> gpi [label="Graphic file"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3467 # log -> fig [label="Graphic file"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3468 # log -> eps_gz [label="Graphic file"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3469 # log -> dot [label="Graphic file"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3470 # log -> idx [label="No file *.ind"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3471 # log -> glo [label="No file *.gls"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3472 # log -> nlo [label="No file *.nls"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3473 # gpi -> gpi_data [label="plot '...'"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3474 # gpi -> gpi_includes [label="load '...'"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3475 # tex:tex -> ps [label="paper"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3476 # tex:tex -> pdf [label="embedding"] |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3477 #} |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3478 |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3479 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3480 # DEPENDENCY CHART SCRIPT |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3481 # |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3482 # $(call output_dependency_graph,[<output file>]) |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3483 define output-dependency-graph |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3484 if [ -f '$(this_file)' ]; then \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3485 $(SED) \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3486 -e '/^[[:space:]]*#[[:space:]]*DEPENDENCY CHART:/,/^$$/!d' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3487 -e '/DEPENDENCY CHART/d' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3488 -e '/^$$/d' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3489 -e 's/^[[:space:]]*#//' \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3490 $(this_file) $(if $1,> '$1',); \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3491 else \ |
975bb59bb136
Adapted config-manual according to admin-manual
Hans Plum <hans.plum@intevation.de>
parents:
905
diff
changeset
|
3492 $(ECHO) "Cannot determine the name of this makefile."; \ |