aboutsummaryrefslogtreecommitdiffstats
path: root/doc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'doc/Makefile')
-rw-r--r--doc/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/doc/Makefile b/doc/Makefile
new file mode 100644
index 00000000..5f59879e
--- /dev/null
+++ b/doc/Makefile
@@ -0,0 +1,21 @@
+-include ../Makefile.settings
+ifdef SRCDIR
+SRCDIR := $(SRCDIR)doc/
+endif
+
+all:
+ # Only build the docs if this is a bzr checkout
+ test ! -d ../.bzr || $(MAKE) -C user-guide
+
+install:
+ mkdir -p $(DESTDIR)$(MANDIR)/man8/ $(DESTDIR)$(MANDIR)/man5/
+ install -m 0644 $(SRCDIR)bitlbee.8 $(DESTDIR)$(MANDIR)/man8/
+ install -m 0644 $(SRCDIR)bitlbee.conf.5 $(DESTDIR)$(MANDIR)/man5/
+ $(MAKE) -C user-guide $@
+
+uninstall:
+ rm -f $(DESTDIR)$(MANDIR)/man8/bitlbee.8*
+ rm -f $(DESTDIR)$(MANDIR)/man5/bitlbee.conf.5*
+ $(MAKE) -C user-guide $@
+
+.PHONY: install uninstall