Hi,

#include "apology.h"

I'm trying to use automake/autoconf to distribute an Emacs Lisp
package, but I'm having some problems.  First of all, the package
contains several files, some of which `require' each other at top
level, so they have to be visible to each other at compile time.

The script `elisp-comp' that automake uses to compile .el files claims
to manage "in such a way that all Emacs LISP files to be compiled are
made visible between themselves, in the event they require or
load-library one another."  It does this by making a temporary
directory and copying all its arguments there before compiling them.

However, this only works if all the files are passed on the command
line at once.  The Makefile.in generated by automake calls elisp-comp
on each elisp file individually, thus preventing them from being able
to load each other at compile time.  Am I missing a flag somewhere?
My Makefile.am contains:

lisp_LISP = file1.el file2.el ...

Is this the right way to do it?

In addition, I find that elisp files are not counted as "source" and
thus not included by `make dist'.  Is there a way to tell automake
that lisp files should be considered source code, rather than just
setting EXTRA_DIST or something like that?

Thanks in advance.

\\// | R | T R | L B | /\ mailto:[EMAIL PROTECTED]
 \/ (Michael Shulman) //\\ http://kurukshetra.cjb.net/

The truth of the matter is that you always know the right thing to do.
The hard part is doing it.
        -- Gen. H. Norman Schwarzkopf

Reply via email to