2 # Copyright (C) 2012 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 # Check compiling elisp files in different subdirectories, where a
18 # file in a subdirectory might require a file in another one.
19 # This doesn't work out of the box, but can be made to work with a
20 # judicious use of $(AM_ELCFLAGS).
25 cat >> configure.ac
<< 'END'
30 cat > Makefile.am
<< 'END'
35 sub
3/subsub
/am-three.el
40 -L $
(srcdir
)/sub
3/subsub
43 test -f sub
1/am-one.elc
44 test -f sub
2/am-two.elc
45 test -f sub
3/subsub
/am-three.elc
50 mkdir sub1 sub2 sub3 sub
3/subsub
52 cat > am-here.el
<< 'END'
59 cat > sub
1/am-one.el
<< 'END'
66 cat > sub
2/am-two.el
<< 'END'
73 cat > sub
3/subsub
/am-three.el
<< 'END'
82 $AUTOMAKE --add-missing
89 for x
in am-here sub
1/am-one sub
2/am-two sub
3/subsub
/am-three
; do