Skip to content

Commit a3c59d8

Browse files
aduh95addaleax
authored andcommitted
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: #35062 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Derek Lewis <[email protected]>
1 parent fb1a133 commit a3c59d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -767,8 +767,8 @@ out/doc/api/all.json: $(apidocs_json) tools/doc/alljson.js | out/doc/api
767767
$(call available-node, tools/doc/alljson.js)
768768

769769
.PHONY: docopen
770-
docopen: $(apidocs_html)
771-
@$(PYTHON) -mwebbrowser file://$(PWD)/out/doc/api/all.html
770+
docopen: out/doc/api/all.html
771+
@$(PYTHON) -mwebbrowser file://$(abspath $<)
772772

773773
.PHONY: docserve
774774
docserve: $(apidocs_html) $(apiassets)

0 commit comments

Comments
 (0)