123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- #! /bin/sh
- required=emacs
- . test-init.sh
- cat > Makefile.am << 'EOF'
- lisp_LISP = am-one.el am-two.el am-three.el
- EXTRA_DIST = am-one.el am-two.el
- ELCFILES=
- am-three.el:
- echo "(provide 'am-three)" > $@
- CLEANFILES = am-three.el
- test:
- test ! -f am-one.elc
- test ! -f am-two.elc
- test ! -f am-three.elc
- install-test: install
- test -f "$(lispdir)/am-one.el"
- test -f "$(lispdir)/am-two.el"
- test -f "$(lispdir)/am-three.el"
- test ! -f "$(lispdir)/am-one.elc"
- test ! -f "$(lispdir)/am-two.elc"
- test ! -f "$(lispdir)/am-three.elc"
- not-installed:
- find "$(lispdir)" | grep '\.el$$' && exit 1; :
- find "$(lispdir)" | grep '\.elc$$' && exit 1; :
- EOF
- cat >> configure.ac << 'EOF'
- AM_PATH_LISPDIR
- AC_OUTPUT
- EOF
- echo "(require 'am-two)" > am-one.el
- echo "(require 'am-three) (provide 'am-two)" > am-two.el
- $ACLOCAL
- $AUTOCONF
- $AUTOMAKE --add-missing
- cwd=$(pwd) || fatal_ "getting current working directory"
- ./configure --prefix "$cwd"
- $MAKE
- $MAKE test
- $MAKE install-test
- $MAKE uninstall
- $MAKE not-installed
- ./configure EMACS=no --prefix "$cwd"
- $MAKE
- $MAKE test
- $MAKE install
- $MAKE not-installed
- $MAKE uninstall
- :
|