sshfs-mapper: Added documentation generation.

git-svn-id: https://websvn.glenux.net/svn/Upoc/sshfs-mapper/trunk@1661 eaee96b3-f302-0410-b096-c6cfd47f7835
This commit is contained in:
glenux 2011-03-10 16:56:03 +00:00
parent 622ae38cd0
commit a473237934

View file

@ -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