commit 954ffa53027ca4e2ef58b0cad71acaae77cdb7fb
parent 82beefa56e3eedec682ffbc26cd6a9cb4bcb6f58
Author: Vincent Demeester <vincent@sbr.pm>
Date: Mon, 5 Aug 2024 09:40:50 +0200
tools/emacs: fix run-command-recipe-make
It's an and instead of an or. We want to make sure `make`
exists **and** a `Makefile` is present.
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/emacs/config/config-programming.el b/tools/emacs/config/config-programming.el
@@ -61,7 +61,7 @@ This is condition to the following:
- `Makefile' file present in project root *or* the default directory."
(let* ((dir (vde-project--project-root-or-default-directory))
(makefile (expand-file-name "Makefile" dir)))
- (when (or
+ (when (and
(executable-find "make")
(file-exists-p makefile))
(message "Makefile present")