123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- #! /bin/sh
- required=GNUmake
- . test-init.sh
- cat >> configure.ac << 'END'
- AC_SUBST([LINK], ['cat >$@'])
- AC_SUBST([OBJEXT], [oOo])
- AC_SUBST([EXEEXT], [.XxX])
- AC_OUTPUT
- END
- cat > Makefile.am << 'END'
- SUFFIXES = a b c .$(OBJEXT)
- bin_PROGRAMS = foo
- foo_SOURCES = fooa
- ab:
- { echo '=ab=' && cat $<; } >$@
- bc:
- { echo '=bc=' && cat $<; } >$@
- c.$(OBJEXT):
- { echo '=b.obj=' && cat $<; } >$@
- test:
- : For debugging.
- ls -l
- : Implicit intermediate files should be removed by GNU make ...
- test ! -r foob
- test ! -r fooc
- : ... but object files should not.
- cat foo.$(OBJEXT)
- : For debugging.
- cat foo.XxX
- : Now check that the chain of implicit rules has been executed
- : completely and in the correct order.
- (echo =b.obj= && echo =bc= && echo =ab= && echo =src=) > exp
- diff exp foo.XxX
- rm -f exp
- .PHONY: test
- check-local: test
- END
- $ACLOCAL
- $AUTOCONF
- $AUTOMAKE
- ./configure
- echo =src= > fooa
- $MAKE
- $MAKE test
- $MAKE distcheck
- :
|