emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/dash 1bf9ddb 304/316: Makefile aesthetics


From: ELPA Syncer
Subject: [elpa] externals/dash 1bf9ddb 304/316: Makefile aesthetics
Date: Mon, 15 Feb 2021 15:58:21 -0500 (EST)

branch: externals/dash
commit 1bf9ddb672dfb2098e5c89acf3bd71be2f11fc46
Author: Basil L. Contovounesios <contovob@tcd.ie>
Commit: Basil L. Contovounesios <contovob@tcd.ie>

    Makefile aesthetics
    
    * Makefile (check, %.elc): Define pertinent forms as target-specific
    variables, mostly to avoid splitting recipe lines.
---
 Makefile | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index efee2db..e8538e3 100644
--- a/Makefile
+++ b/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
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]