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

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2013-07-11 23:39:02 +0400
committerisaacs <i@izs.me>2013-07-11 23:39:02 +0400
commit2feda6ad8f629d33ecb5f6de6d8f9da8fe57c25c (patch)
tree7fb87cfa302c74e0c2b17c2c9254ac25b6c7c273 /Makefile
parent2ca3fe5b505f81f4c407c830e233269f62e0aa61 (diff)
doc: Build legacy json/global docs
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 17 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 91fe5f673..b1f1c3bfc 100644
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,9 @@ api_mandocs = $(shell find doc/api -name '*.md' \
files_mandocs = $(shell find doc/files -name '*.md' \
|sed 's|.md|.5|g' \
- |sed 's|doc/files/|man/man5/|g' )
+ |sed 's|doc/files/|man/man5/|g' ) \
+ man/man5/npm-json.5 \
+ man/man5/npm-global.5
misc_mandocs = $(shell find doc/misc -name '*.md' \
|sed 's|.md|.7|g' \
@@ -31,7 +33,9 @@ api_htmldocs = $(shell find doc/api -name '*.md' \
files_htmldocs = $(shell find doc/files -name '*.md' \
|sed 's|.md|.html|g' \
- |sed 's|doc/files/|html/doc/files/|g' )
+ |sed 's|doc/files/|html/doc/files/|g' ) \
+ html/doc/files/npm-json.html \
+ html/doc/files/npm-global.html
misc_htmldocs = $(shell find doc/misc -name '*.md' \
|sed 's|.md|.html|g' \
@@ -89,6 +93,12 @@ man/man3/%.3: doc/api/%.md scripts/doc-build.sh package.json
@[ -d man/man3 ] || mkdir -p man/man3
scripts/doc-build.sh $< $@
+man/man5/npm-json.5: man/man5/package.json.5
+ cp $< $@
+
+man/man5/npm-global.5: man/man5/npm-folders.5
+ cp $< $@
+
man/man5/%.5: doc/files/%.md scripts/doc-build.sh package.json
@[ -d man/man5 ] || mkdir -p man/man5
scripts/doc-build.sh $< $@
@@ -109,6 +119,11 @@ html/doc/api/%.html: doc/api/%.md html/dochead.html html/docfoot.html scripts/do
@[ -d html/doc/api ] || mkdir -p html/doc/api
scripts/doc-build.sh $< $@
+html/doc/files/npm-json.html: html/doc/files/package.json.html
+ cp $< $@
+html/doc/files/npm-global.html: html/doc/files/npm-folders.html
+ cp $< $@
+
html/doc/files/%.html: doc/files/%.md html/dochead.html html/docfoot.html scripts/doc-build.sh package.json
@[ -d html/doc/files ] || mkdir -p html/doc/files
scripts/doc-build.sh $< $@