Makefile aesthetics

* Makefile (check, %.elc): Define pertinent forms as target-specific
variables, mostly to avoid splitting recipe lines.
master
Basil L. Contovounesios 5 years ago
parent 1c711f199d
commit 1bf9ddb672
No known key found for this signature in database
GPG Key ID: 205AB54A5D5D8CFF
  1. 8
      Makefile

@ -39,9 +39,9 @@ force-docs: maintainer-clean docs
# defaults to selecting all tests. Note that in batch mode, a nil
# selector is the same as t.
check: ERT_SELECTOR ?= t
check: RUN := '(ert-run-tests-batch-and-exit (quote $(ERT_SELECTOR)))'
check: lisp
$(BATCH) -l dev/examples-to-tests.el -l dev/examples.el \
-eval '(ert-run-tests-batch-and-exit (quote $(ERT_SELECTOR)))'
$(BATCH) -l dev/examples-to-tests.el -l dev/examples.el -eval $(RUN)
.PHONY: check
all: lisp docs check
@ -63,9 +63,9 @@ maintainer-clean: clean
# Files.
%.elc: WERROR := '(setq byte-compile-error-on-warn t)'
%.elc: %.el
$(BATCH) -eval '(setq byte-compile-error-on-warn t)' \
-f batch-byte-compile $<
$(BATCH) -eval $(WERROR) -f batch-byte-compile $<
dash-functional.elc: dash.elc

Loading…
Cancel
Save