mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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>
This commit is contained in:
committed by
Derek Lewis
parent
ff0aad0f74
commit
441c03de50
4
Makefile
4
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)
|
||||
|
||||
Reference in New Issue
Block a user