1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- #! /bin/sh
- required=emacs
- . test-init.sh
- cat > Makefile.am << 'EOF'
- lisp_DATA = am-one.el am-two.el am-three.el
- EXTRA_DIST = am-one.el am-two.el
- 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-test
- $MAKE uninstall
- $MAKE not-installed
- :
|