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>2011-09-09 00:18:48 +0400
committerisaacs <i@izs.me>2011-09-09 00:18:48 +0400
commit8fdd60d9608cd56a07d46ebbe492d6c7e05e3047 (patch)
treedd0caf3699e936aa69d6d4685e4e19883f513289 /Makefile
parenta79d8804f1a205cdaf73bb84f7b06a0112c73085 (diff)
Build an index of all html documentation files
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d206886c0..5db42598b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,18 @@
SHELL = bash
+markdowns = $(shell find doc -name '*.md' | grep -v 'index')
+
docs = $(shell find doc -name '*.md' \
+ |grep -v 'index' \
|sed 's|.md|.1|g' \
- |sed 's|doc/|man1/|g' ) man1/README.1
+ |sed 's|doc/|man1/|g' ) \
+ man1/README.1
htmldocs = $(shell find doc -name '*.md' \
|sed 's|.md|.html|g' \
- |sed 's|doc/|html/doc/|g' ) html/doc/README.html
+ |sed 's|doc/|html/doc/|g' ) \
+ html/doc/README.html \
+ html/doc/index.html
doc_subfolders = $(shell find doc -type d \
|sed 's|doc/|man1/|g' )
@@ -56,6 +62,10 @@ html/doc/README.html: README.md html/dochead.html html/docfoot.html
html/doc/%.html: doc/%.md html/dochead.html html/docfoot.html
scripts/doc-build.sh $< $@
+doc/index.md: $(markdowns)
+ node scripts/index-build.js > doc/index.md
+
+
test: submodules
node cli.js test