vala-vpath.sh (automake-1.16.2.tar.xz) | : | vala-vpath.sh (automake-1.16.3.tar.xz) | ||
---|---|---|---|---|
skipping to change at line 50 | skipping to change at line 50 | |||
cat > hello.vala <<'END' | cat > hello.vala <<'END' | |||
void main () | void main () | |||
{ | { | |||
stdout.printf ("foofoofoo\n"); | stdout.printf ("foofoofoo\n"); | |||
} | } | |||
END | END | |||
cp hello.vala goodbye.vala | cp hello.vala goodbye.vala | |||
$ACLOCAL | $ACLOCAL | |||
$AUTOCONF | $AUTOCONF | |||
$AUTOMAKE | $AUTOMAKE -a | |||
mkdir build | mkdir build | |||
cd build | cd build | |||
../configure | ../configure | |||
$MAKE | $MAKE | |||
test -f ../foo_vala.stamp | test -f ./foo_vala.stamp | |||
test -f ../bar_vala.stamp | test -f ./bar_vala.stamp | |||
grep foofoofoo ../hello.c | grep foofoofoo ./hello.c | |||
test -f ../zardoz.h | test -f ./zardoz.h | |||
$MAKE distcheck | $MAKE distcheck | |||
# Rebuild rules work also in VPATH builds. | # Rebuild rules work also in VPATH builds. | |||
cat > ../hello.vala <<'END' | cat > ../hello.vala <<'END' | |||
int main () | int main () | |||
{ | { | |||
stdout.printf ("barbarbar\n"); | stdout.printf ("barbarbar\n"); | |||
return 0; | return 0; | |||
} | } | |||
END | END | |||
$MAKE | $MAKE | |||
test -f ../foo_vala.stamp | test -f ./foo_vala.stamp | |||
test -f ../bar_vala.stamp | test -f ./bar_vala.stamp | |||
grep barbarbar ../hello.c | grep barbarbar ./hello.c | |||
$MAKE distcheck | ||||
# Rebuild rules are not uselessly triggered. | # Rebuild rules are not uselessly triggered. | |||
$MAKE -q | $MAKE -q | |||
$MAKE -n | grep '\.stamp' && exit 1 | $MAKE -n | grep '\.stamp' && exit 1 | |||
# Cleanup rules work also in VPATH builds. | # Cleanup rules work also in VPATH builds. | |||
$MAKE clean | $MAKE clean | |||
test -f ../foo_vala.stamp | test -f ./foo_vala.stamp | |||
test -f ../bar_vala.stamp | test -f ./bar_vala.stamp | |||
test -f ../zardoz.h | test -f ./zardoz.h | |||
test -f ../hello.c | test -f ./hello.c | |||
$MAKE maintainer-clean | $MAKE maintainer-clean | |||
test ! -e ../zardoz.h | test ! -e ./zardoz.h | |||
test ! -e ../hello.c | test ! -e ./hello.c | |||
test ! -e ../foo_vala.stamp | test ! -e ./foo_vala.stamp | |||
test ! -e ../bar_vala.stamp | test ! -e ./bar_vala.stamp | |||
: | : | |||
End of changes. 5 change blocks. | ||||
16 lines changed or deleted | 17 lines changed or added |