help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: Retrieving the "include" directory for Emacs Modules


From: Marco Antoniotti
Subject: Re: Re: Retrieving the "include" directory for Emacs Modules
Date: Sun, 8 Dec 2024 16:36:09 +0100

Hi

I have no qualms about being able to "fix" 'pq' to make it work.

But I am writing an Emacs Module and I do not want to force anybody to
"fix" my setup ("It works on my machine" (tm))

In other words, I would like to be able to write

EMACS_INCLUDE_DIR := $(shell $(EMACS) -q --batch --eval "(princ
*em-include-directory*)")
EMACS_SRC_DIR := $(shell $(EMACS) -q --batch --eval "(princ
*em-scr-directory*)")

All the best

MA


On Sun, Dec 8, 2024 at 4:29 PM Jean Louis <bugs@gnu.support> wrote:

> * Marco Antoniotti <marcoxa@gmail.com> [2024-12-08 18:20]:
> > Hi Eli
> >
> > sorry again: the behavior on Mac and Windows is different w.r.t.
> > data-directory (see previous message).  I can try on a Linux machine
> > tomorrow.  Note that I installed Emacs with brew on my Mac
> >
> > Case in point: if I try to install 'pq' from the package manager I get
> the
> > following error.
>
> I am using emacs-libpq and I have changed:
>
> EMACS_INCLUDE_DIR := /home/data1/protected/Programming/Software/emacs/src
> EMACS_SRC_DIR := /home/data1/protected/Programming/Software/emacs/src
>
> in Makefile to get it compiled
>
> EMACS = emacs
> EMACS_VERSION := $(shell $(EMACS) -q --batch --eval "(princ
> emacs-version)")
> EMACS_MAJOR_VERSION := $(shell $(EMACS) -q --batch --eval "(princ
> emacs-major-version)")
> EMACS_INCLUDE_DIR := /home/data1/protected/Programming/Software/emacs/src
> EMACS_SRC_DIR := /home/data1/protected/Programming/Software/emacs/src
>
> Module works great, no complains.
>
> --
> Jean Louis
>


-- 
Marco Antoniotti
Somewhere over the Rainbow


reply via email to

[Prev in Thread] Current Thread [Next in Thread]