about summary refs log tree commit homepage
diff options
context:
space:
mode:
-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 \