diff --git a/Makefile b/Makefile index 5120d517de9759..08f86c28298769 100644 --- a/Makefile +++ b/Makefile @@ -771,8 +771,8 @@ out/doc/api/all.json: $(apidocs_json) tools/doc/alljson.js $(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)