diff options
author | isaacs <i@izs.me> | 2011-09-09 00:18:48 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2011-09-09 00:18:48 +0400 |
commit | 8fdd60d9608cd56a07d46ebbe492d6c7e05e3047 (patch) | |
tree | dd0caf3699e936aa69d6d4685e4e19883f513289 /Makefile | |
parent | a79d8804f1a205cdaf73bb84f7b06a0112c73085 (diff) |
Build an index of all html documentation files
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -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 |