From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: Location of OpenDocument style files should be configurable Date: Mon, 02 Jan 2012 19:40:34 +0530 Message-ID: <81sjjykxet.fsf@gmail.com> References: <20220.19946.360761.625682@a1i15.kph.uni-mainz.de> <81k45du97t.fsf@gmail.com> <20222.21041.522506.741641@a1i15.kph.uni-mainz.de> <20224.42871.411055.861546@a1i15.kph.uni-mainz.de> <20224.50573.418581.674268@a1i15.kph.uni-mainz.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:55127) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RhibF-0000pR-6o for emacs-orgmode@gnu.org; Mon, 02 Jan 2012 09:10:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RhibE-0005cr-7e for emacs-orgmode@gnu.org; Mon, 02 Jan 2012 09:10:53 -0500 Received: from mail-iy0-f169.google.com ([209.85.210.169]:61318) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RhibE-0005cf-3e for emacs-orgmode@gnu.org; Mon, 02 Jan 2012 09:10:52 -0500 Received: by iacb35 with SMTP id b35so32110287iac.0 for ; Mon, 02 Jan 2012 06:10:51 -0800 (PST) In-Reply-To: <20224.50573.418581.674268@a1i15.kph.uni-mainz.de> (Ulrich Mueller's message of "Sun, 1 Jan 2012 21:43:57 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Ulrich Mueller Cc: emacs-orgmode@gnu.org Ulrich >> So, could the build system please be changed, such that the datadir >> value at _compile_ time is taken, not at _install_ time? > > I.e., something like the patch included below. > > BTW, maybe one could think about supporting DESTDIR? That should be > trivial to implement, simply prepend $(DESTDIR) to all destination > paths in the install-* make targets. I can prepare a patch if this is > wanted. > It would be wonderful if you could provide a patch (and a usage note). ps: Makefiles are beyond my jurisdiction. I will let Bastien act on your patch(es). Jambunathan K. > Cheers, > Ulrich > > > From f6eb5150418bfd5de35b8f4f9ca39f4cbff1d40b Mon Sep 17 00:00:00 2001 > From: Ulrich Mueller > Date: Sun, 1 Jan 2012 21:39:21 +0100 > Subject: [PATCH] Don't re-compile org-odt.el at install time. > > --- > Makefile | 6 +----- > 1 files changed, 1 insertions(+), 5 deletions(-) > > diff --git a/Makefile b/Makefile > index 520b0fd..642b21f 100644 > --- a/Makefile > +++ b/Makefile > @@ -247,14 +247,10 @@ p: > g: > ${MAKE} pdf && open doc/orgguide.pdf > > -# Always force re-compilation of org-odt > -lisp/org-odt.elc: org-odt-data-dir > -org-odt-data-dir: > - > # Sleight of hand to "hard code" the value of $(datadir) in > # org-odt.el. See variables `org-odt-styles-dir-list' and > # `org-odt-schema-dir-list'. > -install-lisp: BATCH_EXTRA = -eval "(setq org-odt-data-dir (expand-file-name \"$(datadir)\"))" > +lisp/org-odt.elc: BATCH_EXTRA = -eval "(setq org-odt-data-dir (expand-file-name \"$(datadir)\"))" > > install-lisp: $(LISPFILES) $(ELCFILES) > if [ ! -d $(lispdir) ]; then $(MKDIR) $(lispdir); else true; fi ;