1 ## automake - create Makefile.in from Makefile.am
2 ## Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
3 ## Free Software Foundation, Inc.
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)
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.
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
21 ?GENERIC?%SOURCE_SUFFIX%%DEST_SUFFIX%:
22 ?!GENERIC?%DEST_PREFIX%%DEST_SUFFIX%: %SOURCE% %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 @rm -f $@ $@-[0-9] $@-[0-9][0-9]
28 ## It is wrong to have `info' files dependent on %DIRSTAMP%, because
29 ## `info' files are distributed and %DIRSTAMP% isn't: a distributed file
30 ## should never be dependent upon a non-distributed built file.
31 ## Therefore we ensure that %DIRSTAMP% exists in the rule.
32 ?DIRSTAMP? @test -f %DIRSTAMP% || $(MAKE) %DIRSTAMP%
33 $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) %MAKEINFOFLAGS% \
34 -o $@ `test -f '%SOURCE%' || echo '$(srcdir)/'`%SOURCE%
36 ?GENERIC?%SOURCE_SUFFIX%.dvi:
37 ?!GENERIC?%DEST_PREFIX%.dvi: %SOURCE% %DEPS% %DIRSTAMP%
38 TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \
39 ## Must set MAKEINFO like this so that version.texi will be found even
40 ## if it is in srcdir (-I $(srcdir) is set in %MAKEINFOFLAGS%).
41 MAKEINFO='$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) %MAKEINFOFLAGS%' \
42 ## Do not use `-o' unless necessary: it is only supported since Texinfo 4.1.
43 ?GENERIC? $(TEXI2DVI) `test -f '%SOURCE%' || echo '$(srcdir)/'`%SOURCE%
44 ?!GENERIC? $(TEXI2DVI) -o $@ `test -f '%SOURCE%' || echo '$(srcdir)/'`%SOURCE%
46 ?GENERIC?%SOURCE_SUFFIX%.pdf:
47 ?!GENERIC?%DEST_PREFIX%.pdf: %SOURCE% %DEPS% %DIRSTAMP%
48 TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \
49 ## Must set MAKEINFO like this so that version.texi will be found even
50 ## if it is in srcdir (-I $(srcdir) is set in %MAKEINFOFLAGS%).
51 MAKEINFO='$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) %MAKEINFOFLAGS%' \
52 ## Do not use `-o' unless necessary: it is only supported since Texinfo 4.1.
53 ?GENERIC? $(TEXI2PDF) `test -f '%SOURCE%' || echo '$(srcdir)/'`%SOURCE%
54 ?!GENERIC? $(TEXI2PDF) -o $@ `test -f '%SOURCE%' || echo '$(srcdir)/'`%SOURCE%
56 ## If we are using the generic rules, we need separate dependencies.
57 ## (Don't wonder about %DIRSTAMP% here, this is used only by non-generic
60 %DEST_PREFIX%%DEST_SUFFIX%: %SOURCE_REAL% %DEPS%
61 %DEST_PREFIX%.dvi: %SOURCE_REAL% %DEPS%
62 %DEST_PREFIX%.pdf: %SOURCE_REAL% %DEPS%