2 # Copyright (C) 2009-2012 Free Software Foundation, Inc.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2, or (at your option)
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17 # Check texinfo rules in silent-rules mode.
19 required='makeinfo tex texi2dvi dvips'
22 echo AC_OUTPUT >> configure.ac
24 cat > Makefile.am <<'EOF'
25 info_TEXINFOS = foo.texi
28 cat > foo.texi <<'EOF'
38 $AUTOMAKE --add-missing
41 ./configure --disable-silent-rules
43 # Make sure that all labels work in silent-mode.
44 $MAKE V=0 dvi html info ps pdf >stdout || { cat stdout; exit 1; }
46 grep 'DVIPS foo.ps' stdout || exit 1
47 grep 'MAKEINFO foo.html' stdout || exit 1
48 # NetBSD make will print './foo.info' instead of 'foo.info'.
49 grep 'MAKEINFO.*foo.info' stdout || exit 1
50 grep 'TEXI2DVI foo.dvi' stdout || exit 1
51 grep 'TEXI2PDF foo.pdf' stdout || exit 1
53 # Now make sure the labels don't appear in verbose mode.
55 $MAKE V=1 dvi html info ps pdf >stdout || { cat stdout; exit 1; }
57 grep 'DVIPS foo.ps' stdout && exit 1
58 grep 'MAKEINFO foo.html' stdout && exit 1
59 grep 'MAKEINFO.*foo.info' stdout && exit 1
60 grep 'TEXI2DVI foo.dvi' stdout && exit 1
61 grep 'TEXI2PDF foo.pdf' stdout && exit 1