From 8fdd60d9608cd56a07d46ebbe492d6c7e05e3047 Mon Sep 17 00:00:00 2001 From: isaacs Date: Thu, 8 Sep 2011 13:18:48 -0700 Subject: Build an index of all html documentation files --- Makefile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3