1 | ## automake - create Makefile.in from Makefile.am
|
---|
2 | ## Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
|
---|
3 | ## Free Software Foundation, Inc.
|
---|
4 |
|
---|
5 | ## This program is free software; you can redistribute it and/or modify
|
---|
6 | ## it under the terms of the GNU General Public License as published by
|
---|
7 | ## the Free Software Foundation; either version 2, or (at your option)
|
---|
8 | ## any later version.
|
---|
9 |
|
---|
10 | ## This program is distributed in the hope that it will be useful,
|
---|
11 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
12 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
13 | ## GNU General Public License for more details.
|
---|
14 |
|
---|
15 | ## You should have received a copy of the GNU General Public License
|
---|
16 | ## along with this program; if not, write to the Free Software
|
---|
17 | ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
---|
18 | ## 02111-1307, USA.
|
---|
19 |
|
---|
20 |
|
---|
21 | ?GENERIC_INFO?%SOURCE_SUFFIX%%DEST_SUFFIX%:
|
---|
22 | ?!GENERIC_INFO?%DEST_PREFIX%%DEST_SUFFIX%: %SOURCE_INFO% %DEPS%
|
---|
23 | ## Note that we also remove the possible output files before running
|
---|
24 | ## makeinfo. Otherwise, if the texinfo file shrinks (or if you start
|
---|
25 | ## using --no-split), you'll be left with some dead info files lying
|
---|
26 | ## around -- dead files which will end up in the distribution.
|
---|
27 | ## *.iNN files are used on DJGPP. See the comments in install-info-am
|
---|
28 | @rm -f $@ $@-[0-9] $@-[0-9][0-9] $(@:.info=).i[0-9] $(@:.info=).i[0-9][0-9]
|
---|
29 | ## It is wrong to have `info' files dependent on %DIRSTAMP%, because
|
---|
30 | ## `info' files are distributed and %DIRSTAMP% isn't: a distributed file
|
---|
31 | ## should never be dependent upon a non-distributed built file.
|
---|
32 | ## Therefore we ensure that %DIRSTAMP% exists in the rule.
|
---|
33 | ?DIRSTAMP? @test -f %DIRSTAMP% || $(MAKE) %DIRSTAMP%
|
---|
34 | $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) %MAKEINFOFLAGS% \
|
---|
35 | -o $@ `test -f '%SOURCE_INFO%' || echo '$(srcdir)/'`%SOURCE_INFO%
|
---|
36 |
|
---|
37 | ?GENERIC?%SOURCE_SUFFIX%.dvi:
|
---|
38 | ?!GENERIC?%DEST_PREFIX%.dvi: %SOURCE% %DEPS% %DIRSTAMP%
|
---|
39 | TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \
|
---|
40 | ## Must set MAKEINFO like this so that version.texi will be found even
|
---|
41 | ## if it is in srcdir (-I $(srcdir) is set in %MAKEINFOFLAGS%).
|
---|
42 | MAKEINFO='$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) %MAKEINFOFLAGS%' \
|
---|
43 | ## Do not use `-o' unless necessary: it is only supported since Texinfo 4.1.
|
---|
44 | ?GENERIC? $(TEXI2DVI) `test -f '%SOURCE%' || echo '$(srcdir)/'`%SOURCE%
|
---|
45 | ?!GENERIC? $(TEXI2DVI) -o $@ `test -f '%SOURCE%' || echo '$(srcdir)/'`%SOURCE%
|
---|
46 |
|
---|
47 | ?GENERIC?%SOURCE_SUFFIX%.pdf:
|
---|
48 | ?!GENERIC?%DEST_PREFIX%.pdf: %SOURCE% %DEPS% %DIRSTAMP%
|
---|
49 | TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \
|
---|
50 | ## Must set MAKEINFO like this so that version.texi will be found even
|
---|
51 | ## if it is in srcdir (-I $(srcdir) is set in %MAKEINFOFLAGS%).
|
---|
52 | MAKEINFO='$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) %MAKEINFOFLAGS%' \
|
---|
53 | ## Do not use `-o' unless necessary: it is only supported since Texinfo 4.1.
|
---|
54 | ?GENERIC? $(TEXI2PDF) `test -f '%SOURCE%' || echo '$(srcdir)/'`%SOURCE%
|
---|
55 | ?!GENERIC? $(TEXI2PDF) -o $@ `test -f '%SOURCE%' || echo '$(srcdir)/'`%SOURCE%
|
---|
56 |
|
---|
57 | ## If we are using the generic rules, we need separate dependencies.
|
---|
58 | ## (Don't wonder about %DIRSTAMP% here, this is used only by non-generic
|
---|
59 | ## rules.)
|
---|
60 | if %?GENERIC_INFO%
|
---|
61 | %DEST_PREFIX%%DEST_SUFFIX%: %SOURCE_REAL% %DEPS%
|
---|
62 | endif %?GENERIC_INFO%
|
---|
63 | if %?GENERIC%
|
---|
64 | %DEST_PREFIX%.dvi: %SOURCE_REAL% %DEPS%
|
---|
65 | %DEST_PREFIX%.pdf: %SOURCE_REAL% %DEPS%
|
---|
66 | endif %?GENERIC%
|
---|