Article View: gnu.emacs.help
Article #189126Re: Changing the standard load-path
From: Dave Brennan
Date: Thu, 25 Apr 1991 03:52
Date: Thu, 25 Apr 1991 03:52
18 lines
1741 bytes
1741 bytes
>>>>> On 10 Apr 91 19:08:41 GMT, jwz@lucid.com (Jamie Zawinski) said:
Jamie> If you are writing a Makefile to compile an elisp package, you have
Jamie> to explicitly add a -l for each file which that package might
Jamie> require.
Here's the Makefile rule I use, which will automatically take care of this
as long as the lisp file being compiled contains the appropriate requires.
.el.elc:
echo Compiling $<
emacs -batch `grep '^[^;]*(require' $< | sed 's/[^'"']*'"'\\([^)]*\\).*/ -l \\1.el/'` -f batch-byte-compile $<
|\
Dave Brennan | \____oo_ brennan@rtp.dg.com
=========================================((__| /___> ...rti!dg-rtp!brennan
User Interfaces, Data General | // daveb@rpitsmts.bitnet
Research Triangle Park, NC |// Phone: (919) 248-6330
Technical Details
Message-ID:
<BRENNAN.91Apr24235218@teton.rtp.dg.com>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!dg-rtp!dg-rtp!brennanReferences:
<STABL.91Apr8110805@trillian.fmi.uni-passau.de> <STABL.91Apr8193405@trillian.fmi.uni-passau.de> <ALLEN.91Apr9100500@manic.ssc.gov> <BROWN.91Apr10131745@duncan.cs.utk.edu> <JWZ.91Apr10150841@thalidomide.lucid.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103b8b,d7cb4a04079254a8 X-Google-Attributes: gid103b8b,public X-Google-ArrivalTime: 1991-04-25 12:38:26 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!dg-rtp!dg-rtp!brennan From: brennan@rtp.dg.com (Dave Brennan) Newsgroups: gnu.emacs.help Subject: Re: Changing the standard load-path Message-ID: <BRENNAN.91Apr24235218@teton.rtp.dg.com> Date: 25 Apr 91 03:52:18 GMT References: <STABL.91Apr8110805@trillian.fmi.uni-passau.de> <STABL.91Apr8193405@trillian.fmi.uni-passau.de> <ALLEN.91Apr9100500@manic.ssc.gov> <BROWN.91Apr10131745@duncan.cs.utk.edu> <JWZ.91Apr10150841@thalidomide.lucid.com> Sender: usenet@dg-rtp.dg.com (Usenet Administration) Distribution: gnu Organization: Data General, RTP, NC Lines: 18 In-Reply-To: jwz@lucid.com's message of 10 Apr 91 19:08:41 GMT