doc: typos in test file.
[automake.git] / t / lisp-pr11806.sh
blob23e72d7f454007e42b1dcdfd4de7244cf9550d5c
1 #! /bin/sh
2 # Copyright (C) 2012-2024 Free Software Foundation, Inc.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2, or (at your option)
7 # any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <https://www.gnu.org/licenses/>.
17 # Compiling .el files that requires each other in a VPATH build.
18 # See automake bug#11806.
20 required=emacs
21 . test-init.sh
23 cat >> configure.ac << 'END'
24 AM_PATH_LISPDIR
25 AC_OUTPUT
26 END
28 cat > Makefile.am << 'END'
29 lisp_LISP = foo.el
30 lisp_DATA = bar.el
31 END
33 echo "(require 'bar)" > foo.el
34 echo "(provide 'bar)" > bar.el
36 $ACLOCAL
37 $AUTOCONF
38 $AUTOMAKE -a
40 mkdir build
41 cd build
42 ../configure
43 $MAKE
44 test -f foo.elc
45 cd ..
47 ./configure
48 $MAKE
49 test -f foo.elc