Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/devmanual:master commit in: /
Date: Mon, 27 Jan 2020 20:44:25
Message-Id: 1580157420.aa6e1e365fff48b6e1e5470791f499a0589d39c3.ulm@gentoo
1 commit: aa6e1e365fff48b6e1e5470791f499a0589d39c3
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 27 20:37:00 2020 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 27 20:37:00 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=aa6e1e36
7
8 Makefile: Add separate "build" target.
9
10 This is for the app-doc/devmanual[fallback] offline package, where we
11 don't have lunr.js and don't want to build documents.js.
12
13 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
14
15 Makefile | 6 ++++--
16 1 file changed, 4 insertions(+), 2 deletions(-)
17
18 diff --git a/Makefile b/Makefile
19 index e7131ed..3fb4c52 100644
20 --- a/Makefile
21 +++ b/Makefile
22 @@ -7,7 +7,7 @@ HTMLS := $(subst text.xml,index.html,$(XMLS))
23 ECLASS_HTMLS := $(wildcard eclass-reference/*/index.html)
24 IMAGES := $(patsubst %.svg,%.png,$(SVGS))
25
26 -all: prereq validate $(HTMLS) $(IMAGES) documents.js
27 +all: prereq validate build documents.js
28
29 prereq:
30 @type rsvg-convert >/dev/null 2>&1 || \
31 @@ -23,6 +23,8 @@ prereq:
32 { echo "media-fonts/open-sans is required" >&2;\
33 exit 1; }
34
35 +build: $(HTMLS) $(IMAGES)
36 +
37 # We need to parse all the XMLs every time, not just the ones
38 # that are newer than the target. This is because each search
39 # document in devmanual gets a unique ID, which is used to
40 @@ -68,4 +70,4 @@ tidy: $(HTMLS) $(ECLASS_HTMLS)
41 clean:
42 rm -f $(HTMLS) $(IMAGES) _documents.js documents.js
43
44 -.PHONY: all prereq validate tidy clean
45 +.PHONY: all prereq validate build tidy clean