123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- #! /bin/sh
- . test-init.sh
- cat >> configure.ac << 'END'
- AC_CONFIG_FILES([dir/Makefile])
- AC_OUTPUT
- END
- mkdir dir
- cat > Makefile.am << 'END'
- BUILT_SOURCES = built1
- SUBDIRS = dir
- built1:
- echo ok > $@
- CLEANFILES = built1
- install-data-hook:
- $(MKDIR_P) $(DESTDIR)$(prefix)/dir2
- cp built1 $(DESTDIR)$(prefix)/built1
- cp dir/built2 $(DESTDIR)$(prefix)/dir2/built3
- uninstall-hook:
- rm -f $(DESTDIR)$(prefix)/built1
- rm -f $(DESTDIR)$(prefix)/dir2/built3
- rmdir $(DESTDIR)$(prefix)/dir2
- installcheck-local:
- test -f $(prefix)/built1
- test -f $(prefix)/dir2/built3
- END
- cat > dir/Makefile.am << 'END'
- BUILT_SOURCES = built2
- built2:
- cp ../built1 $@
- CLEANFILES = built2
- END
- $ACLOCAL
- $AUTOCONF
- $AUTOMAKE
- ./configure --prefix "$(pwd)/inst"
- $MAKE install
- test -f built1
- test -f dir/built2
- $MAKE installcheck
- $MAKE distcheck
- :
|