2 # Copyright (C) 2012-2013 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)
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 <http://www.gnu.org/licenses/>.
17 # Compiling elisp files in different subdirectories.
22 cat >> configure.ac << 'END'
27 cat > Makefile.am << 'END'
28 dist_lisp_LISP = am-one.el
29 nodist_lisp_LISP = sub/am-two.el
32 echo "(provide 'am-two)" > $@
33 DISTCLEANFILES = $(nodist_lisp_LISP)
34 dist_noinst_LISP = x/y/z/am-three.el
38 test -f sub/am-two.elc
39 test -f x/y/z/am-three.elc
45 echo "(provide 'am-one)" > am-one.el
46 # sub/am-two.el is generated at make runtime
47 echo "(provide 'am-three)" > x/y/z/am-three.el
51 $AUTOMAKE --add-missing
59 test ! -e sub/am-two.elc
60 test ! -e x/y/z/am-three.elc
63 test -f x/y/z/am-three.el
65 # Byte-compiling only a subset of the elisp files.
66 $MAKE am-one.elc sub/am-two.elc
68 test -f sub/am-two.elc
69 test ! -e x/y/z/am-three.elc
70 rm -f am-one.elc sub/am-two.elc
71 $MAKE x/y/z/am-three.elc
73 test ! -e sub/am-two.elc
74 test -f x/y/z/am-three.elc