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

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

compile all your Elisp with `native-compile'


From: Emanuel Berg
Subject: compile all your Elisp with `native-compile'
Date: Tue, 21 Feb 2023 21:28:31 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Here is how it can be done.

%.elc: %.el
        $(byte-compile) $< $(sed-filter)
        $(emacs) -Q \
            --batch \
                 --eval "(setq load-path (append load-path '($(packs)))))" \
                 --eval "(native-compile \"$<\")" $(sed-filter)

It's fast!

See complete Makefile:

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

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




reply via email to

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