build: Regenerate docs for tarball and releases
authorisaacs <i@izs.me>
Tue, 10 Jul 2012 00:43:02 +0000 (17:43 -0700)
committerisaacs <i@izs.me>
Tue, 10 Jul 2012 15:02:30 +0000 (08:02 -0700)
Related: https://twitter.com/kapeli/status/222477400880070658

Makefile

index 51a8b3ea92c789b86f1bbd78fd96052e5109140e..0e419b4c2c5f70317fd2a541d9cf976c50c67c0b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -130,7 +130,7 @@ website_files = \
        out/doc/changelog.html \
        $(doc_images)
 
-doc: program $(apidoc_dirs) $(website_files) $(apiassets) $(apidocs) tools/doc/ blog
+doc: $(apidoc_dirs) $(website_files) $(apiassets) $(apidocs) tools/doc/ blog node
 
 blogclean:
        rm -rf out/blog
@@ -144,19 +144,19 @@ $(apidoc_dirs):
 out/doc/api/assets/%: doc/api_assets/% out/doc/api/assets/
        cp $< $@
 
-out/doc/changelog.html: ChangeLog doc/changelog-head.html doc/changelog-foot.html tools/build-changelog.sh
+out/doc/changelog.html: ChangeLog doc/changelog-head.html doc/changelog-foot.html tools/build-changelog.sh node
        bash tools/build-changelog.sh
 
-out/doc/%.html: doc/%.html
+out/doc/%.html: doc/%.html node
        cat $< | sed -e 's|__VERSION__|'$(VERSION)'|g' > $@
 
 out/doc/%: doc/%
        cp -r $< $@
 
-out/doc/api/%.json: doc/api/%.markdown
+out/doc/api/%.json: doc/api/%.markdown node
        out/Release/node tools/doc/generate.js --format=json $< > $@
 
-out/doc/api/%.html: doc/api/%.markdown
+out/doc/api/%.html: doc/api/%.markdown node
        out/Release/node tools/doc/generate.js --format=html --template=doc/template.html $< > $@
 
 email.md: ChangeLog tools/email-footer.md
@@ -216,7 +216,7 @@ $(PKG):
                --doc tools/osx-pkg.pmdoc \
                --out $(PKG)
 
-$(TARBALL): node out/doc
+$(TARBALL): node doc
        @if [ "$(shell git status --porcelain | egrep -v '^\?\? ')" = "" ]; then \
                exit 0 ; \
        else \
@@ -269,4 +269,4 @@ cpplint:
 
 lint: jslint cpplint
 
-.PHONY: lint cpplint jslint bench clean docopen docclean doc dist distclean check uninstall install install-includes install-bin all program staticlib dynamiclib test test-all website-upload pkg blog blogclean
+.PHONY: lint cpplint jslint bench clean docopen docclean doc dist distclean check uninstall install install-includes install-bin all staticlib dynamiclib test test-all website-upload pkg blog blogclean