7950bb244fb897a81acab010851b09962ae1e135
[platform/upstream/automake.git] / tests / insthook.test
1 #! /bin/sh
2
3 # Test to make sure install-exec-hook works.
4 # Report from Tim Goodwin.
5
6 . $srcdir/defs || exit 1
7
8 cat > Makefile.am << 'END'
9 install-exec-hook:
10         @echo nothing
11 END
12
13 $ACLOCAL || exit 1
14 $AUTOMAKE || exit 1
15
16 test "`grep install-exec-hook Makefile.in | wc -l`" -gt 1 || exit 1
17 lnum=`grep -n '^install-exec-am:' Makefile.in | awk -F: '{print $1}'`
18 test x$lnum != x && tail +$lnum Makefile.in | head -3 | grep install-exec-hook