all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Yasuhiro Kimura <yasu@utahime.org>
To: emacs-devel@gnu.org
Subject: Question about native compilation
Date: Thu, 10 Jun 2021 03:01:02 +0900 (JST)	[thread overview]
Message-ID: <20210610.030102.1585779767359400556.yasu@utahime.org> (raw)

Hello,

At first, thank you for implementing native compilation. It's very
exciting.

Currently I'm trying to change some 3rd party emacs lisp programs so
they build and install .eln files if Emacs executable supports native
compilation. For example I would like to write Makefile such as
following.

----------------------------------------------------------------------
NATIVE_COMPILE!= $(execute command to check if native compilation is supported)

all:
	emacs -q -batch -f batch-byte-compile *.el
.if ${NATIVE_COMPILE} == yes
	emacs -q -batch -f batch-native-compile *.el
.endif

install:
	install -m 644 -p *.el *.elc /usr/local/share/emacs/site-lisp
.if ${NATIVE_COMPILE} == yes
	install -m 644 -p *.eln ${directory where 3rd party .eln files should be installed}
.endif
----------------------------------------------------------------------

And I have 2 qestions about it.

1. What is the recommended way to check if executable of Emacs
   supports native compilation?
2. Is there standard place where 3rd party .eln files should be
   installed? I expect such directories as
   ${prefix}/share/emacs/site-lisp or
   ${prefix}/share/emacs/$(version)/site-lisp for .el and .elc files.

Best Regards.

---
Yasuhiro Kimura



             reply	other threads:[~2021-06-09 18:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-09 18:01 Yasuhiro Kimura [this message]
2021-06-09 18:17 ` Question about native compilation Stefan Monnier
2021-06-09 18:21 ` Eli Zaretskii

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

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

  git send-email \
    --in-reply-to=20210610.030102.1585779767359400556.yasu@utahime.org \
    --to=yasu@utahime.org \
    --cc=emacs-devel@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.