2 # Copyright (C) 2009 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 silent-rules mode, without libtool, standard depmode case.
19 # Please keep this file in sync with silent2.test.
27 cat >>configure.in <<'EOF'
29 AC_CONFIG_FILES([sub/Makefile])
35 cat > Makefile.am <<'EOF'
36 # Need generic and non-generic rules.
37 bin_PROGRAMS = foo bar
38 bar_CFLAGS = $(AM_CFLAGS)
42 cat > sub/Makefile.am <<'EOF'
43 AUTOMAKE_OPTIONS = subdir-objects
44 # Need generic and non-generic rules.
45 bin_PROGRAMS = baz bla
46 bla_CFLAGS = $(AM_CFLAGS)
60 $AUTOMAKE --add-missing
63 ./configure --enable-silent-rules
64 $MAKE >stdout || { cat stdout; Exit 1; }
66 grep ' -c' stdout && Exit 1
67 grep ' -o foo' stdout && Exit 1
68 grep mv stdout && Exit 1
69 grep 'CC .*foo\.' stdout
70 grep 'CC .*bar\.' stdout
71 grep 'CC .*baz\.' stdout
72 grep 'CC .*bla\.' stdout
73 grep 'CCLD .*foo' stdout
74 grep 'CCLD .*bar' stdout
75 grep 'CCLD .*baz' stdout
76 grep 'CCLD .*bla' stdout
79 $MAKE V=1 >stdout || { cat stdout; Exit 1; }
83 grep 'CC .*foo\.' stdout && Exit 1
84 grep 'CC .*bar\.' stdout && Exit 1
85 grep 'CC .*baz\.' stdout && Exit 1
86 grep 'CC .*bla\.' stdout && Exit 1
87 grep 'CCLD .*foo' stdout && Exit 1
88 grep 'CCLD .*bar' stdout && Exit 1
89 grep 'CCLD .*baz' stdout && Exit 1
90 grep 'CCLD .*bla' stdout && Exit 1