about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--.document10
-rw-r--r--GNUmakefile6
-rw-r--r--Rakefile1
3 files changed, 15 insertions, 2 deletions
diff --git a/.document b/.document
new file mode 100644
index 0000000..d045955
--- /dev/null
+++ b/.document
@@ -0,0 +1,10 @@
+README
+CHANGELOG
+CONTRIBUTORS
+LICENSE
+TODO
+bin
+lib
+ext/**/*.c
+ext/**/*.rl
+ext/**/*.h
diff --git a/GNUmakefile b/GNUmakefile
index 0992767..63a5bd0 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -104,4 +104,8 @@ Manifest:
         cmp $@+ $@ || mv $@+ $@
         $(RM) -f $@+
 
-.PHONY: $(T) $(slow_tests) Manifest
+# using rdoc 2.4.1
+doc: .document
+        rdoc -Na -m README -t "$(shell sed -ne '1s/^= //p' README)"
+
+.PHONY: doc $(T) $(slow_tests) Manifest
diff --git a/Rakefile b/Rakefile
index 1f0bb18..bbffdb0 100644
--- a/Rakefile
+++ b/Rakefile
@@ -13,7 +13,6 @@ Echoe.new("unicorn") do |p|
                      'site/output', '.config', 'coverage',
                      'test_*.log', 'log', 'doc']
   p.url = "http://unicorn.bogomips.org"
-  p.rdoc_pattern = ['README', 'LICENSE', 'CONTRIBUTORS', 'CHANGELOG', 'COPYING', 'lib/**/*.rb', 'doc/**/*.rdoc']
   p.ignore_pattern = /^(pkg|site|projects|doc|log)|CVS|\.log/
   p.need_tar_gz = false
   p.need_tgz = true