diff options
Diffstat (limited to 't/vpath.sh')
-rw-r--r-- | t/vpath.sh | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/t/vpath.sh b/t/vpath.sh index 57eb69d19..d5a2be202 100644 --- a/t/vpath.sh +++ b/t/vpath.sh @@ -19,15 +19,29 @@ . test-init.sh +echo AC_OUTPUT >> configure.ac + cat > Makefile.am << 'END' VPATH = zardoz +%.bar: %.foo + cp $< $@ END $ACLOCAL +$AUTOCONF $AUTOMAKE -grep VPATH Makefile.in # For debugging. -grep '^VPATH = zardoz$' Makefile.in -grep 'VPATH.*@srcdir@' Makefile.in && exit 1 +mkdir build +cd build +mkdir zardoz +../configure + +echo OK > zardoz/file.foo +echo KO > ../file.foo +$MAKE file.bar +test "$(cat file.bar)" = OK +rm -f file.bar zardoz/file.foo +$MAKE file.bar && exit 1 +test ! -f file.bar : |