Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine du HAMEL <duhamelantoine1995@gmail.com>2020-09-05 02:58:33 +0300
committerDerek Lewis <DerekNonGeneric@inf.is>2020-09-06 23:28:53 +0300
commit441c03de50069d0c9662c87a3ecfd43837d39cae (patch)
treeea82f90ffd10f02fc98b1e702acf5e8b866c4e39 /Makefile
parentff0aad0f747470d33d85fba4deb795a79c55c1a6 (diff)
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 <riclau@uk.ibm.com> Reviewed-By: Derek Lewis <DerekNonGeneric@inf.is>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 585595a2bf4..a63713ccdf9 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)