From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 977AE138350 for ; Mon, 27 Jan 2020 20:44:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BA520E089A; Mon, 27 Jan 2020 20:44:24 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1B5E8E089A for ; Mon, 27 Jan 2020 20:44:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 063E934E3D3 for ; Mon, 27 Jan 2020 20:44:23 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9EC3DD7 for ; Mon, 27 Jan 2020 20:44:20 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1580157420.aa6e1e365fff48b6e1e5470791f499a0589d39c3.ulm@gentoo> Subject: [gentoo-commits] proj/devmanual:master commit in: / X-VCS-Repository: proj/devmanual X-VCS-Files: Makefile X-VCS-Directories: / X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: aa6e1e365fff48b6e1e5470791f499a0589d39c3 X-VCS-Branch: master Date: Mon, 27 Jan 2020 20:44:20 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 2fc359e2-6688-4c71-bca7-7322db3a35a8 X-Archives-Hash: 192625238a98ba47421d092854332241 commit: aa6e1e365fff48b6e1e5470791f499a0589d39c3 Author: Ulrich Müller gentoo org> AuthorDate: Mon Jan 27 20:37:00 2020 +0000 Commit: Ulrich Müller gentoo 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 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