Browse Source

Fix make doc

v0.7.4-release
Ryan Dahl 14 years ago
parent
commit
23927751eb
  1. 33
      Makefile

33
Makefile

@ -358,29 +358,27 @@ test-pummel: $(builddir)/node
test-internet: $(builddir)/node test-internet: $(builddir)/node
python tools/test.py internet python tools/test.py internet
# http://rtomayko.github.com/ronn
# gem install ronn doc: $(builddir)/doc/api/all.html $(builddir)/doc/changelog.html
doc: doc/node.1 doc/api.html doc/index.html doc/changelog.html
docopen: $(builddir)/doc/api/all.html
## HACK to give the ronn-generated page a TOC -google-chrome $(builddir)/doc/api/all.html
doc/api.html: $(builddir)/node doc/api.markdown doc/api_header.html \
doc/api_footer.html $(builddir)/doc/api/all.html: $(builddir)/node doc/api/*.markdown
build/node tools/ronnjs/bin/ronn.js --fragment doc/api.markdown \ $(builddir)/node tools/doctool/doctool.js
| sed "s/<h2>\(.*\)<\/h2>/<h2 id=\"\1\">\1<\/h2>/g" \
| cat doc/api_header.html - doc/api_footer.html > doc/api.html $(builddir)/doc/changelog.html: ChangeLog doc/changelog_header.html \
doc/changelog.html: ChangeLog doc/changelog_header.html \
doc/changelog_footer.html doc/changelog_footer.html
cat doc/changelog_header.html ChangeLog doc/changelog_footer.html > doc/changelog.html cat doc/changelog_header.html ChangeLog doc/changelog_footer.html > $(builddir)/doc/changelog.html
doc/node.1: $(builddir)/node doc/api.markdown all $(buildir)/doc/node.1: $(builddir)/node doc/api.markdown all
$(builddir)/node tools/ronnjs/bin/ronn.js --roff doc/api.markdown > doc/node.1 $(builddir)/node tools/ronnjs/bin/ronn.js --roff doc/api.markdown > $(builddir)/doc/node.1
website-upload: doc website-upload: doc
scp doc/* ryan@nodejs.org:~/web/nodejs.org/ scp doc/* ryan@nodejs.org:~/web/nodejs.org/
docclean: docclean:
@-rm -f doc/node.1 doc/api.html doc/changelog.html -rm -rf $(builddir)/doc
clean: clean:
-rm -f node node_g $(builddir)/node $(builddir)/node_g -rm -f node node_g $(builddir)/node $(builddir)/node_g
@ -422,4 +420,5 @@ bench-idle:
install uninstall \ install uninstall \
dist distclean \ dist distclean \
website-upload \ website-upload \
clean docclean clean docclean docopen

Loading…
Cancel
Save