source: vendor/automake/1.10/tests/lisp5.test

Last change on this file was 3147, checked in by bird, 18 years ago

automake 1.10

File size: 1.9 KB
Line 
1#! /bin/sh
2# Copyright (C) 2003 Free Software Foundation, Inc.
3#
4# This file is part of GNU Automake.
5#
6# GNU Automake is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; either version 2, or (at your option)
9# any later version.
10#
11# GNU Automake is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with GNU Automake; see the file COPYING. If not, write to
18# the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19# Boston, MA 02110-1301, USA.
20
21# Same as lisp4.test, but using the now-recommanded way to install
22# non-bytecompiled *.el files.
23
24required=emacs
25. ./defs || exit 1
26
27set -e
28
29cat > Makefile.am << 'EOF'
30lisp_DATA = am-one.el am-two.el am-three.el
31EXTRA_DIST = am-one.el am-two.el
32am-three.el:
33 echo "(provide 'am-three)" > $@
34CLEANFILES = am-three.el
35
36test:
37 test ! -f am-one.elc
38 test ! -f am-two.elc
39 test ! -f am-three.elc
40 test ! -f elc-stamp
41
42install-test: install
43 test -f $(lispdir)/am-one.el
44 test -f $(lispdir)/am-two.el
45 test -f $(lispdir)/am-three.el
46 test ! -f $(lispdir)/am-one.elc
47 test ! -f $(lispdir)/am-two.elc
48 test ! -f $(lispdir)/am-three.elc
49EOF
50
51cat >> configure.in << 'EOF'
52AM_PATH_LISPDIR
53AC_OUTPUT
54EOF
55
56echo "(require 'am-two)" > am-one.el
57echo "(require 'am-three) (provide 'am-two)" > am-two.el
58# am-tree.el is a built source
59
60$ACLOCAL
61$AUTOCONF
62$AUTOMAKE --add-missing
63
64./configure --prefix "`pwd`"
65$MAKE
66$MAKE test
67$MAKE install-test
68$MAKE uninstall
69
70# Fake the absence of emacs.
71# *.el files SHOULD be installed.
72./configure EMACS=no --prefix "`pwd`"
73$MAKE
74$MAKE test
75$MAKE install-test
Note: See TracBrowser for help on using the repository browser.