diff options
author | Antoine du HAMEL <duhamelantoine1995@gmail.com> | 2020-09-05 02:58:33 +0300 |
---|---|---|
committer | Derek Lewis <DerekNonGeneric@inf.is> | 2020-09-06 23:28:53 +0300 |
commit | 441c03de50069d0c9662c87a3ecfd43837d39cae (patch) | |
tree | ea82f90ffd10f02fc98b1e702acf5e8b866c4e39 /Makefile | |
parent | ff0aad0f747470d33d85fba4deb795a79c55c1a6 (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-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |