1 ## automake - create Makefile.in from Makefile.am
2 ## Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
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 ## We want to force the .info file to be built in srcdir. This is
22 ## probably the simplest way. However, at Cygnus .info files are
23 ## always put into the build directory. So at runtime we select which
25 ## Note that we also remove the possible output files before running
26 ## makeinfo. Otherwise, if the texinfo file shrinks (or if you start
27 ## using --no-split), you'll be left with some dead info files lying
28 ## around -- dead files which will end up in the distribution.
29 ?!CYGNUS? @cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9]
30 ?!CYGNUS? cd $(srcdir) \
31 ?!CYGNUS? && $(MAKEINFO) `echo $< | sed 's,.*/,,'`
32 ?CYGNUS? @rm -f $@ $@-[0-9] $@-[0-9][0-9]
33 ?CYGNUS? $(MAKEINFO) -I $(srcdir) $<
36 TEXINPUTS=%TEXINFODIR%:$$TEXINPUTS \
37 ## Must set MAKEINFO like this so that version.texi will be found even
38 ## if it is in srcdir.
39 MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
42 ## We want to force the .info file to be built in srcdir. This is
43 ## probably the simplest way. However, at Cygnus .info files are
44 ## always put into the build directory. So at runtime we select which
46 ## Note that we also remove the possible output files before running
47 ## makeinfo. Otherwise, if the texinfo file shrinks (or if you start
48 ## using --no-split), you'll be left with some dead info files lying
49 ## around -- dead files which will end up in the distribution.
50 ?!CYGNUS? @cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9]
51 ?!CYGNUS? cd $(srcdir) \
52 ?!CYGNUS? && $(MAKEINFO) `echo $< | sed 's,.*/,,'`
53 ?CYGNUS? @rm -f $@ $@-[0-9] $@-[0-9][0-9]
54 ?CYGNUS? $(MAKEINFO) -I $(srcdir) $<