Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2010-11-16 07:23:12 +0300
committerRyan Dahl <ry@tinyclouds.org>2010-11-16 07:23:14 +0300
commit90d1e47323096b01ae78218e2ea21e7d68690cf8 (patch)
tree5577e2a90acbae85959e2193038a6e0a44521c18 /Makefile
parent4144024e6b5d221d5aaf85771d17e382c79a20fe (diff)
make doc improvements
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile32
1 files changed, 18 insertions, 14 deletions
diff --git a/Makefile b/Makefile
index 8be0a6f46ff..d80b15f59a0 100644
--- a/Makefile
+++ b/Makefile
@@ -55,7 +55,18 @@ apidoc_dirs = build/doc build/doc/api/ build/doc/api/assets
apiassets = $(subst api_assets,api/assets,$(addprefix build/,$(wildcard doc/api_assets/*)))
-doc: build/default/node $(apidoc_dirs) $(apiassets) $(apidocs) build/doc/changelog.html
+website_files = \
+ build/doc/index.html \
+ build/doc/cla.html \
+ build/doc/jquery.js \
+ build/doc/sh_main.js \
+ build/doc/sh_javascript.min.js \
+ build/doc/sh_vim-dark.css \
+ build/doc/logo.png \
+ build/doc/sponsored.png \
+ build/doc/pipe.css
+
+doc: build/default/node $(apidoc_dirs) $(website_files) $(apiassets) $(apidocs) build/doc/changelog.html
$(apidoc_dirs):
mkdir -p $@
@@ -63,6 +74,9 @@ $(apidoc_dirs):
build/doc/api/assets/%: doc/api_assets/% build/doc/api/assets/
cp $< $@
+build/doc/%: doc/%
+ cp $< $@
+
build/doc/api/%.html: doc/api/%.markdown build/default/node $(apidoc_dirs) $(apiassets)
build/default/node tools/doctool/doctool.js doc/template.html $< > $@
@@ -73,20 +87,10 @@ build/doc/changelog.html: ChangeLog build/default/node build/doc/ $(apidoc_dirs)
@echo $(apiassets)
-website_files = \
- doc/index.html \
- doc/cla.html \
- doc/jquery.js \
- doc/sh_main.js \
- doc/sh_javascript.min.js \
- doc/sh_vim-dark.css \
- doc/logo.png \
- doc/sponsored.png \
- doc/pipe.css
+build/doc/%:
website-upload: doc
- scp -r build/doc/* $(web_root)
- scp $(website_files) $(web_root)
+ scp -r build/* $(web_root)
docopen: build/doc/api/all.html
-google-chrome build/doc/api/all.html
@@ -128,4 +132,4 @@ bench-idle:
./node benchmark/idle_clients.js &
-.PHONY: bench clean docclean doc dist distclean check uninstall install all program staticlib dynamiclib test test-all website-upload
+.PHONY: bench clean docopen docclean doc dist distclean check uninstall install all program staticlib dynamiclib test test-all website-upload