Tag
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
#!/bin/sh
# Test for bug where check target doesn't depend on all.
. $srcdir/defs || exit 1
# Build source after derived, so derived must be remade. We build
# this way up here because without a delay between this and creating
# 'source', the make will fail. No, really.
echo foo > derived
# In fact, sometimes it still fails. So we delay a little to make
# sure the timestamps are ok.
sleep 1
cat > Makefile.am << 'END'
bin_SCRIPTS = derived
check-local:
true
derived: source
cat source > derived
END
$AUTOMAKE || exit 1
: > source
# This hack fakes out the Makefile dependencies.
: > configure
: > config.status
: > Makefile
# Bogus.
make -f Makefile.in check
echo "GOT `cat derived`"
test -z "`cat derived`"