unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Emanuel Berg via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: [External] : Re: Native compilation
Date: Fri, 31 Dec 2021 14:08:49 +0100	[thread overview]
Message-ID: <87lf00ncpq.fsf@zoho.eu> (raw)
In-Reply-To: 87mtkhszcp.fsf@zoho.eu

Now `system-configuration-options' says "--with-x-toolkit=no
--with-native-compilation" as well. That settles it I guess.

Only what does this mean?

  Warning (comp): Cannot look-up eln file as no source file
  was found for /home/incal/.emacs.elc

And do I get native code with the same way using the
byte-compiler?

As in this?

# this file:
#   https://dataswamp.org/~incal/emacs-init/Makefile

emacs            = /usr/local/bin/emacs

init-file        = ${HOME}/.emacs
init-file-elc    = $(init-file).elc

emacs-dir        = ${HOME}/.emacs.d

ema-path         = $(emacs-dir)/emacs-init

ema-bibtex       = $(ema-path)/bibtex
ema-erc          = $(ema-path)/erc
ema-gnus         = $(ema-path)/gnus
ema-ide          = $(ema-path)/ide
ema-w3m          = $(ema-path)/w3m

ema              = \"$(ema-erc)\"    \
                   \"$(ema-bibtex)\" \
                   \"$(ema-gnus)\"   \
                   \"$(ema-ide)\"    \
                   \"$(ema-path)\"   \
                   \"$(ema-w3m)\"

elpa-path        = $(emacs-dir)/elpa

crontab-mode     = $(elpa-path)/crontab-mode-20210715.133
gnuplot-mode     = $(elpa-path)/gnuplot-mode-20171013.1616
google-translate = $(elpa-path)/google-translate-20210406.1138
lua-mode         = $(elpa-path)/lua-mode-20210809.1320
markdown-mode    = $(elpa-path)/markdown-mode-20211022.55
seq              = $(elpa-path)/seq-2.23
sml-mode         = $(elpa-path)/sml-mode-6.10
w3m              = $(elpa-path)/w3m-20211122.335

elpa             = \"$(crontab-mode)\"     \
                   \"$(gnuplot-mode)\"     \
                   \"$(google-translate)\" \
                   \"$(lua-mode)\"         \
                   \"$(markdown-mode)\"    \
                   \"$(seq)\"              \
                   \"$(sml-mode)\"         \
                   \"$(w3m)\"              \

packs            = $(elpa) $(ema)

el-files         = $(shell zsh -c "ls -1 **/*.el")
elc-files        = $(el-files:.el=.elc)

sed-filter       = 2>&1 | sed '/^\(Loading\|Wrote\)/d'

byte-compile     = $(emacs)                                  \
	--batch                                                   \
	--eval "(setq load-path (append load-path '($(packs)))))" \
	-f batch-byte-compile

all: $(elc-files) $(init-file-elc)

$(init-file-elc): $(init-file)
	$(byte-compile) $< $(sed-filter)

%.elc: %.el
	$(byte-compile) $< $(sed-filter)

clean:
	$(shell zsh -c "rm -rf **/*.elc(N)")
	rm -f $(init-file-elc)

again:
	${MAKE} clean
	${MAKE} all

test:
	echo $(byte-compile)

-- 
underground experts united
https://dataswamp.org/~incal




  reply	other threads:[~2021-12-31 13:08 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-24  0:44 [External] : Re: Native compilation Drew Adams
2021-12-24  2:53 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-12-24  4:06   ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-12-29 13:52 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-12-31  8:59 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-12-31  9:04   ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-12-31 12:18   ` Eli Zaretskii
2021-12-31 12:31     ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-12-31 12:46       ` Eli Zaretskii
2021-12-31 13:00         ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-12-31 13:08           ` Emanuel Berg via Users list for the GNU Emacs text editor [this message]
2021-12-31 13:37           ` Eli Zaretskii
2021-12-31 13:02         ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-12-31 13:38           ` Eli Zaretskii
2022-01-09  5:26             ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-01-09  7:13               ` Eli Zaretskii
2022-01-10 13:23                 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-01-10 17:51                   ` Eli Zaretskii
2022-01-11 13:18                     ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-01-11 17:04                       ` Eli Zaretskii
2022-01-12 22:38                         ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-01-12 22:49                           ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-01-13  7:07                             ` Eli Zaretskii
2022-01-13  7:31                               ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-01-13  7:34                               ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-01-13  7:05                           ` Eli Zaretskii
2022-01-13  7:28                             ` Emanuel Berg via Users list for the GNU Emacs text editor

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.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87lf00ncpq.fsf@zoho.eu \
    --to=help-gnu-emacs@gnu.org \
    --cc=moasenwood@zoho.eu \
    /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.
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).