From fa8fbd61516e922a256e2b2750f101540b579f13 Mon Sep 17 00:00:00 2001 From: Antoine du HAMEL Date: Sat, 5 Sep 2020 01:58:33 +0200 Subject: [PATCH] tools: fix docopen target Adds to prerequisites the output file to open. Previously, this would open an out-of-date version of the file, or fail if it hasn't been built before. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5120d517de9759..08f86c28298769 100644 --- a/Makefile +++ b/Makefile @@ -771,8 +771,8 @@ out/doc/api/all.json: $(apidocs_json) tools/doc/alljson.js $(call available-node, tools/doc/alljson.js) .PHONY: docopen -docopen: $(apidocs_html) - @$(PYTHON) -mwebbrowser file://$(PWD)/out/doc/api/all.html +docopen: out/doc/api/all.html + @$(PYTHON) -mwebbrowser file://$(abspath $<) .PHONY: docserve docserve: $(apidocs_html)