commit:     aa6e1e365fff48b6e1e5470791f499a0589d39c3
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 27 20:37:00 2020 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Jan 27 20:37:00 2020 +0000
URL:        https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=aa6e1e36

Makefile: Add separate "build" target.

This is for the app-doc/devmanual[fallback] offline package, where we
don't have lunr.js and don't want to build documents.js.

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 Makefile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index e7131ed..3fb4c52 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ HTMLS := $(subst text.xml,index.html,$(XMLS))
 ECLASS_HTMLS := $(wildcard eclass-reference/*/index.html)
 IMAGES := $(patsubst %.svg,%.png,$(SVGS))
 
-all: prereq validate $(HTMLS) $(IMAGES) documents.js
+all: prereq validate build documents.js
 
 prereq:
        @type rsvg-convert >/dev/null 2>&1 || \
@@ -23,6 +23,8 @@ prereq:
        { echo "media-fonts/open-sans is required" >&2;\
          exit 1; }
 
+build: $(HTMLS) $(IMAGES)
+
 # We need to parse all the XMLs every time, not just the ones
 # that are newer than the target. This is because each search
 # document in devmanual gets a unique ID, which is used to
@@ -68,4 +70,4 @@ tidy: $(HTMLS) $(ECLASS_HTMLS)
 clean:
        rm -f $(HTMLS) $(IMAGES) _documents.js documents.js
 
-.PHONY: all prereq validate tidy clean
+.PHONY: all prereq validate build tidy clean

Reply via email to