diff options
| author | Radon Rosborough <radon.neon@gmail.com> | 2019-07-10 22:17:26 -0700 |
|---|---|---|
| committer | Radon Rosborough <radon.neon@gmail.com> | 2019-07-10 22:17:26 -0700 |
| commit | ef86b0c4a3c2a92be82d31235c315ee4c31ecb22 (patch) | |
| tree | 728cafae66ca43af12abff472b633671331387c5 /Makefile | |
| parent | 9ed9d2760d9a564eb4d7d96beb83d0840c690adf (diff) | |
Fix really weird Makefile error
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -11,8 +11,13 @@ all: compile checkdoc longlines ## Build project and run all linters .PHONY: compile compile: ## Check for byte-compiler errors +# Deleting the .elc file first is sometimes necessary +# apparently when switching between different versions of +# Emacs; otherwise we may get an error saying we can't +# overwrite the file. @for file in $(for_compile); do \ echo "[compile] $$file" ;\ + rm -f "$${file}c" ;\ $(EMACS) -Q --batch -L . -f batch-byte-compile $$file 2>&1 \ | grep -v "^Wrote" \ | grep . && exit 1 || true ;\ |
