diff options
Diffstat (limited to 't/suffix.sh')
-rw-r--r-- | t/suffix.sh | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/t/suffix.sh b/t/suffix.sh index 860b8fa4e..b3acb55a6 100644 --- a/t/suffix.sh +++ b/t/suffix.sh @@ -14,7 +14,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -# Make sure proper suffix rules for C compilation are produced, and +# Make sure proper pattern rules for C compilation are produced, and # only once. # See also related test 'suffix2.sh'. @@ -44,15 +44,11 @@ for use_arlib in false :; do $ACLOCAL - $AUTOMAKE $am_warns -i - grep '^ *\.c' Makefile.in # For debugging. - test $(grep -c '^\.c\.o:' Makefile.in) -eq 1 - test $(grep -c '^\.c\.obj:' Makefile.in) -eq 1 - - $AUTOMAKE $am_warns - grep '^ *\.c' Makefile.in # For debugging. - test $(grep -c '^\.c\.o:' Makefile.in) -eq 1 - test $(grep -c '^\.c\.obj:' Makefile.in) -eq 1 + for o in '' '-i'; do + $AUTOMAKE $am_warns $o + grep '%\.[co$]' Makefile.in # For debugging. + test $(grep -c '^%\.\$(OBJEXT): %\.c$' Makefile.in) -eq 1 + done done |