Skip to content

Commit 577978a

Browse files
aduh95richardlau
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 a08e853 commit 577978a

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
@@ -771,8 +771,8 @@ out/doc/api/all.json: $(apidocs_json) tools/doc/alljson.js | out/doc/api
771771
$(call available-node, tools/doc/alljson.js)
772772

773773
.PHONY: docopen
774-
docopen: $(apidocs_html)
775-
@$(PYTHON) -mwebbrowser file://$(PWD)/out/doc/api/all.html
774+
docopen: out/doc/api/all.html
775+
@$(PYTHON) -mwebbrowser file://$(abspath $<)
776776

777777
.PHONY: docserve
778778
docserve: $(apidocs_html) $(apiassets)

0 commit comments

Comments
 (0)