elisp: support elisp files in subdirectories properly
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 14 Jul 2012 21:14:45 +0000 (23:14 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 15 Jul 2012 07:52:47 +0000 (09:52 +0200)
commit3645d0ff5e0e4ee1163b97cf2a498246a014a85c
treeaf16d6a3b81d233dfdd2bdbe501097941db175eb
parent6fc5c9acb05b5e42ca02b861568ee191876dea6f
elisp: support elisp files in subdirectories properly

For more reference, see:
<http://lists.gnu.org/archive/html/automake/2009-10/msg00013.html>
<http://thread.gmane.org/gmane.comp.sysutils.automake.bugs/4772>

* lib/am/lisp.am (.el.elc): If the file being byte-compiled is in
a subdirectory, add that (both as a subdirectory of the builddir
and the srcdir) to the emacs load path.  While we are at it (and
for consistency), drop quoting of $(srcdir) and $(builddir), since
those variables are ensured (by configure-time checks) not to
contain white space nor shell metacharacters.
* t/list-of-tests.mk (XFAIL_TESTS): Add 't/lisp-subdir.sh' and
't/lisp-subdir2.sh', since they now passes.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
lib/am/lisp.am
t/list-of-tests.mk