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

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

[elpa] externals/dash 926eb0b 280/316: Add forceful Makefile targets


From: ELPA Syncer
Subject: [elpa] externals/dash 926eb0b 280/316: Add forceful Makefile targets
Date: Mon, 15 Feb 2021 15:58:17 -0500 (EST)

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

    Add forceful Makefile targets
    
    * Makefile (DOCS): New variable listing docs that can be
    regenerated with this Makefile.
    (maintainer-clean): New target that deletes checked in files that
    can be regenerated with this Makefile, as per
    (info "(standards) Standard Targets").
    (force-docs, force-all): New targets like docs and all,
    respectively, that first run maintainer-clean.
    
    Re: #367.
---
 Makefile | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 4829be3..b587c49 100644
--- a/Makefile
+++ b/Makefile
@@ -21,15 +21,19 @@ EMACS ?= emacs
 BATCH := $(EMACS) -Q -batch -L .
 ELS := dash.el dash-functional.el
 ELCS := $(addsuffix c,$(ELS))
+DOCS := README.md dash.texi
 
 # Targets.
 
 lisp: $(ELCS)
 .PHONY: lisp
 
-docs: README.md dash.texi
+docs: $(DOCS)
 .PHONY: docs
 
+force-docs: maintainer-clean docs
+.PHONY: force-docs
+
 # ERT_SELECTOR is a Lisp expression determining which tests to run.
 # Its format is described in (info "(ert) Test Selectors").  It
 # defaults to selecting all tests.  Note that in batch mode, a nil
@@ -43,10 +47,17 @@ check: lisp
 all: lisp docs check
 .PHONY: all
 
+force-all: maintainer-clean lisp docs check
+.PHONY: force-all
+
 clean:
        $(RM) $(ELCS)
 .PHONY: clean
 
+maintainer-clean: clean
+       $(RM) $(DOCS)
+.PHONY: maintainer-clean
+
 # Files.
 
 %.elc: %.el



reply via email to

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