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 |
|
---|
24 | required=emacs
|
---|
25 | . ./defs || exit 1
|
---|
26 |
|
---|
27 | set -e
|
---|
28 |
|
---|
29 | cat > Makefile.am << 'EOF'
|
---|
30 | lisp_DATA = am-one.el am-two.el am-three.el
|
---|
31 | EXTRA_DIST = am-one.el am-two.el
|
---|
32 | am-three.el:
|
---|
33 | echo "(provide 'am-three)" > $@
|
---|
34 | CLEANFILES = am-three.el
|
---|
35 |
|
---|
36 | test:
|
---|
37 | test ! -f am-one.elc
|
---|
38 | test ! -f am-two.elc
|
---|
39 | test ! -f am-three.elc
|
---|
40 | test ! -f elc-stamp
|
---|
41 |
|
---|
42 | install-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
|
---|
49 | EOF
|
---|
50 |
|
---|
51 | cat >> configure.in << 'EOF'
|
---|
52 | AM_PATH_LISPDIR
|
---|
53 | AC_OUTPUT
|
---|
54 | EOF
|
---|
55 |
|
---|
56 | echo "(require 'am-two)" > am-one.el
|
---|
57 | echo "(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
|
---|