aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2023-09-27 16:43:41 +0200
committerDaniel Mendler <mail@daniel-mendler.de>2023-09-27 16:48:16 +0200
commita417d78f8abfc46386a4008fd694b77ba3e8fb2b (patch)
tree6f0efbcd090c3ec4894aee2c07b961a8ea013820 /Makefile
parenta16662cbc5db33350b7ab0f5a345952fd6c03403 (diff)
Makefile: Add target force-compile
Move sed substitution from CI workflow.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b6ea193..b105831 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
.POSIX:
-.PHONY: all compile test clean check
+.PHONY: all compile force-compile test clean check
.SUFFIXES: .el .elc
EMACS = emacs
@@ -17,6 +17,11 @@ all: compile
compile: $(BYTEC)
+force-compile:
+ sed -i "s/ no-byte-compile: t;/ no-byte-compile: nil;/" $(BYTEC:.elc=.el)
+ make compile
+ sed -i "s/ no-byte-compile: nil;/ no-byte-compile: t;/" $(BYTEC:.elc=.el)
+
test:
$(EMACS) --version
$(EMACS) -Q --batch -L . -l compat-tests.el -f ert-run-tests-batch-and-exit