Skip to content

Commit 68c7db9

Browse files
committed
build: allow proper generation of html docs
`gen-doc` always calls `gen-json`, which means it's impossible to generate html docs. Changed this to pass in the command the user wants to run. I'm a Makefile novice, so please let me know if there's a better way to do this :)
1 parent 467385a commit 68c7db9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -503,14 +503,14 @@ gen-doc = \
503503
else \
504504
cd tools/doc && node ../../$(NPM) install; \
505505
fi;\
506-
[ -x $(NODE) ] && $(NODE) $(gen-json) || node
506+
[ -x $(NODE) ] && $(NODE) $(1) || node $(1)
507507

508508
out/doc/api/%.json: doc/api/%.md
509-
$(gen-doc) $(gen-json)
509+
$(call gen-doc, $(gen-json))
510510

511511
# check if ./node is actually set, else use user pre-installed binary
512512
out/doc/api/%.html: doc/api/%.md
513-
$(gen-doc) $(gen-html)
513+
$(call gen-doc, $(gen-html))
514514

515515
docopen: $(apidocs_html)
516516
@$(PYTHON) -mwebbrowser file://$(PWD)/out/doc/api/all.html

0 commit comments

Comments
 (0)