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 C941C138334 for ; Sat, 21 Dec 2019 05:20:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A5814E08FC; Sat, 21 Dec 2019 05:20:01 +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 10035E08FA for ; Sat, 21 Dec 2019 05:20:00 +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 8433F34D28C for ; Sat, 21 Dec 2019 05:19:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0F06E30C for ; Sat, 21 Dec 2019 05:19:58 +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: <1576905496.167e9b50644484f047b60fd1f55950821810dc18.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: 167e9b50644484f047b60fd1f55950821810dc18 X-VCS-Branch: master Date: Sat, 21 Dec 2019 05:19:58 +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: d35a6700-72c5-4423-a627-28ca20b0ed26 X-Archives-Hash: cd713d7ac4342870821c6c4546e1cc81 commit: 167e9b50644484f047b60fd1f55950821810dc18 Author: Göktürk Yüksek gentoo org> AuthorDate: Sat Dec 21 04:31:52 2019 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Sat Dec 21 05:18:16 2019 +0000 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=167e9b50 Makefile: make build_search_documents.py a prerequisite for documents.js Signed-off-by: Göktürk Yüksek gentoo.org> Signed-off-by: Ulrich Müller gentoo.org> Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 56f2e68..17be902 100644 --- a/Makefile +++ b/Makefile @@ -19,11 +19,12 @@ prereq: { echo "dev-libs/libxml2 is required" >&2;\ exit 1; } -# Since search_index.py rebuilds the index from scratch instead of -# updating it, we pass it the names of ALL prerequisites ($^) and not -# just the names of the ones that are new ($?). -documents.js: $(XMLS) - ./bin/build_search_documents.py $^ > _documents.js +# 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 +# quickly tie search matches to the corresponding documents. +documents.js: bin/build_search_documents.py $(XMLS) + ./bin/build_search_documents.py $(XMLS) > _documents.js mv _documents.js documents.js %.png : %.svg