emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/sweeprolog 21a4475306 112/166: Makefile: Allow specifying


From: ELPA Syncer
Subject: [nongnu] elpa/sweeprolog 21a4475306 112/166: Makefile: Allow specifying the path to emacs
Date: Fri, 30 Sep 2022 04:59:30 -0400 (EDT)

branch: elpa/sweeprolog
commit 21a447530614d4fe90de1e8c7709ea6b9c7cc506
Author: James N. V. Cash <james.cash@occasionallycogent.com>
Commit: Eshel Yaron <me@eshelyaron.com>

    Makefile: Allow specifying the path to emacs
    
    Running emacs on macOS, the emacs binary is inside the app bundle, not
    on the path, so it's useful to be able to specify it.
---
 Makefile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 0846ede742..a2bb127679 100644
--- a/Makefile
+++ b/Makefile
@@ -14,6 +14,8 @@ SWIPL      ?= swipl
 SWIPLBASE   = $(shell $(SWIPL) --dump-runtime-variables | grep PLBASE   | cut 
-f 2 -d = | cut -f 1 -d ';')
 SWIPLLIBDIR = $(shell $(SWIPL) --dump-runtime-variables | grep PLLIBDIR | cut 
-f 2 -d = | cut -f 1 -d ';')
 
+EMACS ?= emacs
+
 TARGET   = $(BASENAME)-module.$(SOEXT)
 OBJECT   = $(BASENAME).o
 SOURCE   = $(BASENAME).c
@@ -42,9 +44,9 @@ clean:
        rm -f $(TARGET) $(OBJECT) $(BASENAME).info $(BASENAME).texi 
$(BASENAME).html
 
 $(BASENAME).info:: README.org
-       emacs -Q --batch --eval "(require 'ox-texinfo)" \
+       $(EMACS) -Q --batch --eval "(require 'ox-texinfo)" \
                --eval "(with-current-buffer (find-file \"README.org\") 
(org-export-to-file (quote texinfo) \"$@\" nil nil nil nil nil (quote 
org-texinfo-compile)))"
 
 check: $(TARGET)
-       emacs --batch --eval '(add-to-list (quote load-path) (expand-file-name 
"."))' \
+       $(EMACS) --batch --eval '(add-to-list (quote load-path) 
(expand-file-name "."))' \
                -l ert -l sweep -l sweep-tests.el -f 
ert-run-tests-batch-and-exit



reply via email to

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