From 441c03de50069d0c9662c87a3ecfd43837d39cae 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. PR-URL: https://github.com/nodejs/node/pull/35062 Reviewed-By: Richard Lau Reviewed-By: Derek Lewis --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 585595a2bf..a63713ccdf 100644 --- a/Makefile +++ b/Makefile @@ -771,8 +771,8 @@ out/doc/api/all.json: $(apidocs_json) tools/doc/alljson.js | out/doc/api $(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) $(apiassets)