nobase_fooexec_LTLIBRARIES = sub/libnobase.la
sub_libbase_la_SOURCES = source2.c
sub_libnobase_la_SOURCES = source2.c
+
+test-install-data: install-data
+ test -f inst/foo/sub/nobase.h
+ test ! -f inst/foo/nobase.h
+ test -f inst/foo/base.h
+ test -f inst/foo/sub/nobase.dat
+ test ! -f inst/foo/nobase.dat
+ test -f inst/foo/base.dat
+ test ! -f inst/foo/sub/nobase.sh
+ test ! -f inst/foo/base.sh
+ test ! -f inst/foo/sub/nobase$(EXEEXT)
+ test ! -f inst/foo/base$(EXEEXT)
+ test ! -f inst/foo/sub/libnobase.a
+ test ! -f inst/foo/libbase.a
+ test ! -f inst/foo/sub/libnobase.la
+ test ! -f inst/foo/libbase.la
+
+test-install-exec: install-exec
+ test -f inst/foo/sub/nobase.sh
+ test ! -f inst/foo/nobase.sh
+ test -f inst/foo/base.sh
+ test -f inst/foo/sub/nobase$(EXEEXT)
+ test ! -f inst/foo/nobase$(EXEEXT)
+ test -f inst/foo/base$(EXEEXT)
+ test -f inst/foo/sub/libnobase.a
+ test ! -f inst/foo/libnobase.a
+ test -f inst/foo/libbase.a
+ test -f inst/foo/sub/libnobase.la
+ test ! -f inst/foo/libnobase.la
+ test -f inst/foo/libbase.la
EOF
mkdir sub
./configure --prefix `pwd`/inst
$MAKE
-$MAKE install-data
-
-test -f inst/foo/sub/nobase.h
-test ! -f inst/foo/nobase.h
-test -f inst/foo/base.h
-
-test -f inst/foo/sub/nobase.dat
-test ! -f inst/foo/nobase.dat
-test -f inst/foo/base.dat
-
-test ! -f inst/foo/sub/nobase.sh
-test ! -f inst/foo/base.sh
-test ! -f inst/foo/sub/nobase
-test ! -f inst/foo/base
-test ! -f inst/foo/sub/libnobase.a
-test ! -f inst/foo/libbase.a
-test ! -f inst/foo/sub/libnobase.la
-test ! -f inst/foo/libbase.la
-
-$MAKE install-exec
-
-test -f inst/foo/sub/nobase.sh
-test ! -f inst/foo/nobase.sh
-test -f inst/foo/base.sh
-
-test -f inst/foo/sub/nobase
-test ! -f inst/foo/nobase
-test -f inst/foo/base
-
-test -f inst/foo/sub/libnobase.a
-test ! -f inst/foo/libnobase.a
-test -f inst/foo/libbase.a
-
-test -f inst/foo/sub/libnobase.la
-test ! -f inst/foo/libnobase.la
-test -f inst/foo/libbase.la
-
+$MAKE test-install-data
+$MAKE test-install-exec
$MAKE uninstall
test `find inst/foo -type f -print | wc -l` = 0