aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Khramtsov <ekhramtsov@process-one.net>2020-01-08 12:45:58 +0300
committerEvgeny Khramtsov <ekhramtsov@process-one.net>2020-01-08 12:45:58 +0300
commita9383597affc2163241696546c838c6c27c0b7d8 (patch)
treea1778c544de308a4a59d10e9a41aa5fbb3f3e874
parentRename plugin to not clash with plugin from dep (diff)
Add install target for ejabberd.yml.5
-rw-r--r--Makefile.in10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile.in b/Makefile.in
index 0f933ad45..366914b5a 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -28,6 +28,9 @@ PACKAGE_TARNAME = @PACKAGE_TARNAME@
datarootdir = @datarootdir@
DOCDIR = $(DESTDIR)@docdir@
+# /share/doc/man/man5
+MANDIR = $(DESTDIR)@mandir@/man5
+
# /usr/lib/ejabberd/ebin/
BEAMDIR = $(EJABBERDDIR)/ebin
@@ -262,10 +265,11 @@ install: all copy-files
chmod -R 750 $(LOGDIR)
#
# Documentation
+ $(INSTALL) -d $(MANDIR)
$(INSTALL) -d $(DOCDIR)
- [ -f doc/guide.html ] \
- && $(INSTALL) -m 644 doc/guide.html $(DOCDIR) \
- || echo "Documentation not included in sources"
+ [ -f ejabberd.yml.5 ] \
+ && $(INSTALL) -m 644 ejabberd.yml.5 $(MANDIR) \
+ || echo "Man page not included in sources"
$(INSTALL) -m 644 COPYING $(DOCDIR)
uninstall: uninstall-binary