12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- #! /bin/sh
- . test-init.sh
- echo nil: | $MAKE -I . -f - || skip_ "$MAKE doesn't support the -I option"
- cat >> configure.ac <<'END'
- AC_CONFIG_FILES([sub1/Makefile sub2/Makefile])
- AC_OUTPUT
- END
- mkdir k ./--keep-going sub1 sub2
- cat > Makefile.am <<'END'
- SUBDIRS = sub1 sub2
- END
- cat > sub1/Makefile.am <<'END'
- all-local:
- touch ko
- false
- END
- cat > sub2/Makefile.am <<'END'
- all-local:
- test -f ../sub1/ko
- touch ok
- END
- $ACLOCAL
- $AUTOCONF
- $AUTOMAKE
- ./configure
- st=0
- $MAKE -I k -I --keep-going \
- TESTS='k --keep-going -k' AM_MAKEFLAGS="TESTS='k --keep-going -k'" \
- || st=$?
- if using_gmake; then
- test $st -gt 0 || exit 1
- fi
- test ! -r sub2/ok
- st=0; $MAKE -k || st=$?
- if { using_gmake && test $st -eq 0; } || test ! -f sub2/ok; then
- fatal_ '"make -k" not working as expected'
- fi
- :
|