about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-12-09 22:30:08 +0000
committerEric Wong <normalperson@yhbt.net>2010-12-09 22:36:16 +0000
commit4e4166437ac88aa6df4ffcd4ed8452cb5eb8750e (patch)
treee156a93e18fc660eb24f750f70e5bead3b477869
parentbe4d28e81a028757074a01abfcabf75262624e79 (diff)
downloadruby-tdb-4e4166437ac88aa6df4ffcd4ed8452cb5eb8750e.tar.gz
Might as well enable it to help people
browse code.
-rw-r--r--GNUmakefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 384e286..d8fe7c6 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -4,6 +4,7 @@ RUBY = ruby
 RAKE = rake
 RSYNC = rsync
 GIT_URL = git://git.bogomips.org/ruby-tdb.git
+CGIT_URL = http://git.bogomips.org/cgit/ruby-tdb.git
 
 GIT-VERSION-FILE: .FORCE-GIT-VERSION-FILE
         @./GIT-VERSION-GEN
@@ -65,13 +66,14 @@ ChangeLog: GIT-VERSION-FILE
         mv $@+ $@
 
 news_atom := http://bogomips.org/ruby-tdb/NEWS.atom.xml
-cgit_atom := http://git.bogomips.org/cgit/ruby-tdb.git/atom/?h=master
+cgit_atom := $(CGIT_URL)/atom/?h=master
 atom = <link rel="alternate" title="Atom feed" href="$(1)" \
              type="application/atom+xml"/>
 
 # using rdoc 2.5.x
 doc: .document NEWS ChangeLog
-        rdoc -t "$(shell sed -ne '1s/^= //p' README)"
+        rdoc --webcvs=$(CGIT_URL)/tree/%s \
+          -t "$(shell sed -ne '1s/^= //p' README)"
         install -m644 COPYING doc/COPYING
         install -m644 $(shell grep '^[A-Z]' .document) doc/
         $(RUBY) -i -p -e \