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:
Glenn Y. Rolland 2011-03-10 16:56:03 +00:00
parent 22fae53132
commit c5b81f32ec

View file

@ -4,12 +4,37 @@ BINDIR=$(DESTDIR)/usr/bin
MANDIR=$(DESTDIR)/usr/share/man MANDIR=$(DESTDIR)/usr/share/man
DOCDIR=$(DESTDIR)/usr/share/doc/sshfs-mapper DOCDIR=$(DESTDIR)/usr/share/doc/sshfs-mapper
RUBYVERSION=1.8
RDOC=rdoc$(RUBYVERSION)
all: all:
$(MAKE) -C sshfs-mapper $(MAKE) -C sshfs-mapper
clean: clean:
$(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: install:
mkdir -p $(BINDIR) mkdir -p $(BINDIR)
mkdir -p $(MANDIR)/man1 mkdir -p $(MANDIR)/man1