12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- #! /bin/sh
- required=GNUmake
- . test-init.sh
- echo AC_OUTPUT >> configure.ac
- cat > Makefile.am << 'END'
- BUILT_SOURCES = foo
- .PHONY: build-foo
- build-foo:
- echo OK > foo
- foo:
- $(MAKE) build-foo
- is_too_deep := $(shell test $(MAKELEVEL) -lt 10 && echo no)
- ifeq ($(is_too_deep),no)
-
- else
- $(error ::OOPS:: Recursion too deep, $(MAKELEVEL) levels)
- endif
- END
- $ACLOCAL
- $AUTOMAKE -Wno-portability
- $AUTOCONF
- ./configure
- run_make -M -- -n foo
- test ! -f foo
- $FGREP '::OOPS::' output && exit 1
- run_make -M -- foo
- $FGREP '::OOPS::' output && exit 1
- :
|