dosubst automake.in automake.tmp
# Create required makefile snippets.
-cd tests
-$PERL ./gen-testsuite-part > testsuite-part.tmp
-chmod a-w testsuite-part.tmp
-mv -f testsuite-part.tmp testsuite-part.am
-cd ..
+$PERL ./gen-testsuite-part > t/testsuite-part.tmp
+chmod a-w t/testsuite-part.tmp
+mv -f t/testsuite-part.tmp t/testsuite-part.am
# Run the autotools.
# Use '-I' here so that our own *.m4 files in m4/ gets included,