Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
set -ex
cd example
+
+#----- in-tree build -----
+
git clean -xdff
./autogen.sh && ./configure
make -j4 all check
make -j4 clean
make -j4 all check
+#----- out of tree build -----
+
git clean -xdff
mkdir build
cd build
.././autogen.sh && ../configure
make -j4 all check
+#----- testing rebuild on input change -----
+
echo '# for-check 1' >>../src/for-test.sd.mk
make -j4
grep '^# for-check 1' src/Subdir.mk || false