diff options
| author | Daniel Mendler <mail@daniel-mendler.de> | 2023-09-27 16:43:41 +0200 |
|---|---|---|
| committer | Daniel Mendler <mail@daniel-mendler.de> | 2023-09-27 16:48:16 +0200 |
| commit | a417d78f8abfc46386a4008fd694b77ba3e8fb2b (patch) | |
| tree | 6f0efbcd090c3ec4894aee2c07b961a8ea013820 | |
| parent | a16662cbc5db33350b7ab0f5a345952fd6c03403 (diff) | |
Makefile: Add target force-compile
Move sed substitution from CI workflow.
| -rw-r--r-- | .github/workflows/makefile.yml | 4 | ||||
| -rw-r--r-- | Makefile | 7 |
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 @@ -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 |
