123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- #! /bin/sh
- . test-init.sh
- cat >> configure.ac << 'END'
- AC_CONFIG_FILES([bar sub/Makefile])
- AC_OUTPUT
- END
- cat > Makefile.am <<'END'
- SUBDIRS = sub
- noinst_DATA = foo.c
- foo.c:
- touch foo.c
- MAINTAINERCLEANFILES = foo.c
- END
- mkdir sub
- cat > sub/Makefile.am <<'END'
- noinst_SCRIPTS = zap
- zap: zap.sh
- cp $(srcdir)/zap.sh $@ && chmod a+x $@
- MAINTAINERCLEANFILES = zap
- END
- : > bar.in
- : > sub/zap.sh
- $ACLOCAL
- $AUTOCONF
- $AUTOMAKE
- if test -d autom4te.cache; then
- test_cache='test -d ../autom4te.cache'
- else
- test_cache=:
- fi
- mkdir build
- chmod a-w . sub
- cd build
- ../configure
- test -f bar
- $MAKE
- test -f foo.c
- test -f sub/zap
- $test_cache
- $MAKE distclean
- test ! -e bar
- test ! -e Makefile
- test ! -e sub/Makefile
- test ! -e config.status
- test -f foo.c
- test -f sub/zap
- test -f ../sub/zap.sh
- $test_cache
- ../configure
- test -f bar
- $MAKE foo.c
- test -f foo.c
- cd sub
- $MAKE zap
- test -f zap
- cd ..
- chmod u+w ..
- $MAKE maintainer-clean
- test -f ../sub/zap.sh
- test ! -e bar
- test ! -e foo.c
- test ! -e sub/zap
- test ! -e Makefile
- test ! -e sub/Makefile
- test ! -e config.status
- test ! -e ../autom4te.cache
- :
|