From c5b81f32ecf3cff0ea07ca8b5f81bf06fd34d81b Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Thu, 10 Mar 2011 16:56:03 +0000 Subject: [PATCH] sshfs-mapper: Added documentation generation. git-svn-id: https://websvn.glenux.net/svn/Upoc/sshfs-mapper/trunk@1661 eaee96b3-f302-0410-b096-c6cfd47f7835 --- Makefile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/Makefile b/Makefile index f406a86..1b0e3d9 100644 --- a/Makefile +++ b/Makefile @@ -4,12 +4,37 @@ BINDIR=$(DESTDIR)/usr/bin MANDIR=$(DESTDIR)/usr/share/man DOCDIR=$(DESTDIR)/usr/share/doc/sshfs-mapper +RUBYVERSION=1.8 +RDOC=rdoc$(RUBYVERSION) + all: $(MAKE) -C sshfs-mapper clean: $(MAKE) -C sshfs-mapper clean +doc: build-doc + +.PHONY: build-doc + +build-doc: + rm -fr doc + $(RDOC) \ + --promiscuous \ + --inline-source \ + --line-numbers \ + -o doc sshfs-mapper/ \ + sshfs-mapper.rb + # --diagram + # + +install-doc: + # # install documentation + rm -fr $(DOCDIR) + mkdir -p $(DOCDIR) + cp -a doc $(DOCDIR) + + install: mkdir -p $(BINDIR) mkdir -p $(MANDIR)/man1