aboutsummaryrefslogtreecommitdiff
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
parenta16662cbc5db33350b7ab0f5a345952fd6c03403 (diff)
Makefile: Add target force-compile
Move sed substitution from CI workflow.
-rw-r--r--.github/workflows/makefile.yml4
-rw-r--r--Makefile7
2 files changed, 7 insertions, 4 deletions
diff --git a/.github/workflows/makefile.yml b/.github/workflows/makefile.yml
index 89aac7e..daeb5ad 100644
--- a/.github/workflows/makefile.yml
+++ b/.github/workflows/makefile.yml
@@ -47,9 +47,7 @@ jobs:
- name: Run interpreted tests
run: make test
- name: Byte compile all files
- run: |
- sed -i "s/ no-byte-compile: t;//" compat-macs.el compat-tests.el
- make compile
+ run: make force-compile
- name: Run compiled tests
run: make test
- name: Make info manual
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