mirror of
https://github.com/vale981/apheleia
synced 2025-03-04 17:11:40 -05:00
Fix really weird Makefile error
This commit is contained in:
parent
9ed9d2760d
commit
ef86b0c4a3
1 changed files with 5 additions and 0 deletions
5
Makefile
5
Makefile
|
@ -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 ;\
|
||||
|
|
Loading…
Add table
Reference in a new issue