aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2025-01-28 14:13:25 +0100
committerDaniel Mendler <mail@daniel-mendler.de>2025-01-28 14:18:47 +0100
commitbfc0a46098be2dcaad0518ec200ff5a2be5cc9bb (patch)
treed193f0efd0b45f69c775ae54c256936af70f6129
parenta1a1c9c395a494ebba26c9d46549fe9daf54e032 (diff)
CI: Use strict compile checks
-rw-r--r--Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 33742a1..65d92ae 100644
--- a/Makefile
+++ b/Makefile
@@ -32,6 +32,12 @@
.PHONY: all compile force-compile test clean check
.SUFFIXES: .el .elc
+ifeq ($(CI),true)
+ STRICT = --eval '(setq compat-strict t byte-compile-error-on-warn t)'
+else
+ STRICT =
+endif
+
EMACS = emacs
MAKEINFO = makeinfo
BYTEC = compat-25.elc \
@@ -78,9 +84,7 @@ $(BYTEC): compat-macs.el
.el.elc:
@echo "Compiling $<"
- @$(EMACS) -Q --batch -L . \
- --eval '(setq compat-strict t byte-compile-error-on-warn t)' \
- -f batch-byte-compile $<
+ @$(EMACS) -Q --batch -L . $(STRICT) -f batch-byte-compile $<
compat.info: compat.texi
$(MAKEINFO) $<