emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: Eddward DeVilla <eddward@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Makefile fix?
Date: Wed, 11 Jul 2007 08:26:58 +0200	[thread overview]
Message-ID: <93cd4554623edcef407ec72086b50344@science.uva.nl> (raw)
In-Reply-To: <b71b18520707102115p564d53aawd8999f2552bde3eb@mail.gmail.com>

That seems to work ok.  Miguel, can you confirm?
I am not sure if all versions of make have the
control structure you have been proposing?

- Carsten

On Jul 11, 2007, at 6:15, Eddward DeVilla wrote:

> Oops.  lispdir won't expand due to the single quotes.  Maybe this will
> work a little bit better.
>
> BATCH=$(EMACS) -batch -q -eval "(add-to-list (quote load-path) 
> \"$(lispdir)\")"
>
> Edd
>
> On 7/10/07, Miguel A. Figueroa-Villanueva <miguelf@ieee.org> wrote:
>> Hello Carsten,
>>
>> Yep, I guess I missed that point... I tried your idea below, but it
>> didn't work on my end. If it works then maybe it is a more robust
>> solution. However, the following code worked for me for emacs and
>> xemacs. Note that it assumes that the EMACS variable is either emacs
>> or xemacs.
>>
>> # Name of your emacs binary
>> EMACS=emacs
>>
>> # Using emacs in batch mode.
>> ifeq ($(EMACS),xemacs)
>>   BATCH=$(EMACS) -batch -q -l $(lispdir)/noutline
>> else
>>   BATCH=$(EMACS) -batch -q
>> endif
>>
>> Hope this helps.
>>
>> --Miguel
>>
>> On 7/10/07, Carsten Dominik <dominik@science.uva.nl> wrote:
>> > You are right, this would be better.  However, the same line
>> > then would not work for Emacs, so we need something still
>> > better.  Maybe something like
>> >
>> > BATCH=$(EMACS) -batch -q
>> >         -eval '(add-to-list 'load-path "$(lispdir)")'
>> >
>> > but that is still difficult with all the quoting and escaping of
>> > quoting.  Does anyone here know how to make this work?
>> >
>> > - Carsten
>> >
>> > On Jul 8, 2007, at 20:21, Miguel A. Figueroa-Villanueva wrote:
>> >
>> > > Hello Everyone,
>> > >
>> > > First of all thanks for creating such a great tool!! Kudos 
>> Dominik!!
>> > >
>> > > Now, I updated orgmode and had minor problems with the 
>> installation.
>> > > The problem was because I use XEmacs so it requires the 
>> noutline.el
>> > > installed. Since I edited the following entries:
>> > >
>> > > # Where local software is found
>> > > prefix=/root_dir/svn/usr/local
>> > >
>> > > # Where local lisp files go.
>> > > lispdir = $(prefix)/share/emacs
>> > >
>> > > when I type 'make install-noutline' it installs it in $(lispdir),
>> > > which is what I wanted (i.e., not in the standard lisp 
>> directory). The
>> > > $(lispdir) is of course added to the load-path in my init.el, but 
>> for
>> > > the remaining compilation of org.el it won't know to look for
>> > > noutline.el in there.
>> > >
>> > > Now, since we need noutline.el to compile org.el for XEmacs and we
>> > > just installed it in $(lispdir), shouldn't the following line:
>> > >
>> > > BATCH=$(EMACS) -batch -q
>> > >
>> > > read like this instead:
>> > >
>> > > BATCH=$(EMACS) -batch -q -l $(lispdir)/noutline
>> > >
>> > > That is where my problem was and by making the change above it was
>> > > fixed. Notice that if $(lispdir) is set to the standard lisp 
>> directory
>> > > then the problem won't arise.
>> > >
>> > > Well, I hope that this helps in case others encounter the same 
>> problem.
>> > >
>> > > Thanks again,
>> > > --Miguel
>> > >
>> > >
>> > > _______________________________________________
>> > > Emacs-orgmode mailing list
>> > > Emacs-orgmode@gnu.org
>> > > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>> > >
>> > >
>> >
>> > --
>> > Carsten Dominik
>> > Sterrenkundig Instituut "Anton Pannekoek"
>> > Universiteit van Amsterdam
>> > Kruislaan 403
>> > NL-1098SJ Amsterdam
>> > phone: +31 20 525 7477
>> >
>> >
>>
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>
>

--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477

  reply	other threads:[~2007-07-11  7:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-08 18:21 Makefile fix? Miguel A. Figueroa-Villanueva
2007-07-10  6:07 ` Carsten Dominik
2007-07-11  3:58   ` Miguel A. Figueroa-Villanueva
2007-07-11  4:15     ` Eddward DeVilla
2007-07-11  6:26       ` Carsten Dominik [this message]
2007-07-11 12:27         ` Miguel A. Figueroa-Villanueva
2007-07-12 15:12           ` Carsten Dominik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=93cd4554623edcef407ec72086b50344@science.uva.nl \
    --to=dominik@science.uva.nl \
    --cc=eddward@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).