From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Makefile fix? Date: Wed, 11 Jul 2007 08:26:58 +0200 Message-ID: <93cd4554623edcef407ec72086b50344@science.uva.nl> References: <17f71bca0707081121s1f52fd7l62066e7677f02c09@mail.gmail.com> <8705ab28598e713706d8cf700c249ec3@science.uva.nl> <17f71bca0707102058h5b4fec9bo79e280ebe1128b11@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I8WRe-0005j0-H8 for emacs-orgmode@gnu.org; Wed, 11 Jul 2007 03:17:06 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I8WRZ-0005dW-C0 for emacs-orgmode@gnu.org; Wed, 11 Jul 2007 03:17:01 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I8WRY-0005cf-49 for emacs-orgmode@gnu.org; Wed, 11 Jul 2007 03:17:00 -0400 Received: from korteweg.uva.nl ([146.50.98.70]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I8WRW-0004YP-Mo for emacs-orgmode@gnu.org; Wed, 11 Jul 2007 03:16:58 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eddward DeVilla Cc: emacs-orgmode@gnu.org 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 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 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