2 # Copyright (C) 2009-2015 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 sub/zardoz.texi
28 cat > foo.texi
<<'EOF'
36 cat > sub
/zardoz.texi
<<'EOF'
38 @setfilename zardoz.info
39 @settitle zardoz manual
44 $AUTOMAKE --add-missing
47 .
/configure
--disable-silent-rules
50 run_make
-O -E -- V
=0 dvi html info ps pdf
51 grep '^ DVIPS foo\.ps$' stdout
52 grep '^ MAKEINFO foo\.html$' stdout
53 # NetBSD make will print './foo.info' instead of 'foo.info'.
54 $EGREP '^ MAKEINFO (\./)?foo\.info$' stdout
55 grep '^ TEXI2DVI foo\.dvi$' stdout
56 grep '^ TEXI2PDF foo\.pdf$' stdout
57 grep '^ DVIPS sub/zardoz.ps$' stdout
58 grep '^ MAKEINFO sub/zardoz.html$' stdout
59 # NetBSD make will print './sub/zardoz.info' instead of 'zardoz.info'.
60 $EGREP '^ MAKEINFO (\./)?sub/zardoz.info$' stdout
61 grep '^ TEXI2DVI sub/zardoz.dvi$' stdout
62 grep '^ TEXI2PDF sub/zardoz.pdf$' stdout
63 # No make recipe is displayed before being executed.
64 $EGREP 'texi2(dvi|pdf)|dvips|makeinfo|(rm|mv) ' \
65 stdout stderr
&& exit 1
66 # No verbose output from TeX nor dvips.
67 $EGREP '(zardoz|foo)\.log|3\.14|Copyright|This is|[Oo]utput ' \
68 stdout stderr
&& exit 1
70 # Verbose mode output.
72 run_make
-M V
=1 dvi html info ps pdf
73 $EGREP '(DVIPS|MAKEINFO|TEXI2(PDF|DVI)) ' output
&& exit 1
74 # Verbose output from TeX.
75 grep '[Oo]utput .*foo\.pdf' output
76 grep '[Oo]utput .*zardoz\.pdf' output
77 $FGREP 'foo.log' output
78 $FGREP 'zardoz.log' output
79 # Verbose output from dvips.
80 $FGREP ' dvips' output