aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorunknown <vmiklos@frugalware.org>2011-07-03 16:15:13 +0200
committerunknown <vmiklos@frugalware.org>2011-07-03 16:15:13 +0200
commit51555706adf8a33b1e7f30b9d8d9c381c79b4123 (patch)
tree510fff8f6ffad0300cd82210233f0adc4e4669c9
parentb5a5938849fe4d147cf050685589b47e7b9aedfd (diff)
Install skyped documentation if skype is enabled
-rw-r--r--Makefile9
-rw-r--r--protocols/skype/Makefile14
2 files changed, 21 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index b6eb6d68..e62d47cb 100644
--- a/Makefile
+++ b/Makefile
@@ -28,6 +28,9 @@ subdirobjs = $(foreach dir,$(subdirs),$(dir)/$(dir).o)
all: $(OUTFILE) $(OTR_PI) $(SKYPE_PI) systemd
$(MAKE) -C doc
+ifdef SKYPE_PI
+ $(MAKE) -C protocols/skype doc
+endif
uninstall: uninstall-bin uninstall-doc
@echo -e '\nmake uninstall does not remove files in '$(DESTDIR)$(ETCDIR)', you can use make uninstall-etc to do that.\n'
@@ -70,9 +73,15 @@ lcov: check
install-doc:
$(MAKE) -C doc install
+ifdef SKYPE_PI
+ $(MAKE) -C protocols/skype install-doc
+endif
uninstall-doc:
$(MAKE) -C doc uninstall
+ifdef SKYPE_PI
+ $(MAKE) -C protocols/skype uninstall-doc
+endif
install-bin:
mkdir -p $(DESTDIR)$(BINDIR)
diff --git a/protocols/skype/Makefile b/protocols/skype/Makefile
index 4f7a036d..bebfe86c 100644
--- a/protocols/skype/Makefile
+++ b/protocols/skype/Makefile
@@ -1,4 +1,7 @@
--include config.mak
+-include ../../Makefile.settings
+ifdef SRCDIR
+SRCDIR := $(SRCDIR)protocls/skype/
+endif
VERSION = 0.9.0
DATE := $(shell date +%Y-%m-%d)
@@ -79,7 +82,14 @@ release:
gpg --comment "See http://vmiklos.hu/gpg/ for info" \
-ba bitlbee-skype-$(VERSION).tar.gz
-doc: HEADER.html Changelog AUTHORS
+doc: skyped.1
+
+install-doc:
+ mkdir -p $(DESTDIR)$(MANDIR)/man1/
+ install -m 0644 $(SRCDIR)skyped.1 $(DESTDIR)$(MANDIR)/man1/
+
+uninstall-doc:
+ rm -f $(DESTDIR)$(MANDIR)/man1/skyped.1*
HEADER.html: README Makefile
asciidoc -a toc -a numbered -a sectids -o HEADER.html -a icons -a data-uri --attribute iconsdir=./images/icons README