summaryrefslogtreecommitdiff
path: root/doc/it
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2019-03-31 14:43:50 +0200
committerSébastien Helleu <flashcode@flashtux.org>2019-03-31 23:51:28 +0200
commitc469f30be595bcf70feee6e0982961c199f78583 (patch)
tree1173389828646a6db568ec618918c03f4258bcb9 /doc/it
parent5980a4deb8c1c71522784b04e9b0b4fa64d6aba5 (diff)
downloadweechat-c469f30be595bcf70feee6e0982961c199f78583.zip
doc: fix generation of man page weechat-headless with autotools
Diffstat (limited to 'doc/it')
-rw-r--r--doc/it/Makefile.am11
1 files changed, 7 insertions, 4 deletions
diff --git a/doc/it/Makefile.am b/doc/it/Makefile.am
index 4a269b1d2..abd88a925 100644
--- a/doc/it/Makefile.am
+++ b/doc/it/Makefile.am
@@ -22,6 +22,7 @@ docdir = $(datadir)/doc/$(PACKAGE)
EXTRA_DIST = CMakeLists.txt \
docinfo.html \
weechat.1.it.adoc \
+ weechat-headless.1.it.adoc \
cmdline_options.it.adoc \
weechat_user.it.adoc \
weechat_plugin_api.it.adoc \
@@ -33,7 +34,8 @@ EXTRA_DIST = CMakeLists.txt \
$(wildcard autogen/plugin_api/*.adoc)
if MAN
- man_targets = weechat.1
+ man_targets = weechat.1 \
+ weechat-headless.1
man_install = install-man
man_uninstall = uninstall-man
endif
@@ -49,9 +51,11 @@ if DOC
endif
all-local: $(man_targets) $(doc_targets)
-# man page
+# man pages
weechat.1: weechat.1.it.adoc cmdline_options.it.adoc
$(ASCIIDOCTOR) -a revision="WeeChat $(VERSION)" -b manpage -o weechat.1 $(abs_top_srcdir)/doc/it/weechat.1.it.adoc
+weechat-headless.1: weechat-headless.1.it.adoc cmdline_options.it.adoc
+ $(ASCIIDOCTOR) -a revision="WeeChat $(VERSION)" -b manpage -o weechat-headless.1 $(abs_top_srcdir)/doc/it/weechat-headless.1.it.adoc
# user's guide
weechat_user.it.html: weechat_user.it.adoc cmdline_options.it.adoc $(wildcard autogen/user/*.adoc) $(abs_top_srcdir)/doc/docinfo.html
@@ -84,7 +88,6 @@ install-data-hook: $(man_install) $(doc_install)
install-man:
$(mkinstalldirs) $(DESTDIR)$(mandir)/it/man1/
$(INSTALL_DATA) *.1 $(DESTDIR)$(mandir)/it/man1/
- (cd '$(DESTDIR)$(mandir)/it/man1/' && $(RM) weechat-headless.1 && $(LN_S) weechat.1 weechat-headless.1)
install-doc:
$(mkinstalldirs) $(DESTDIR)$(docdir)/
@@ -106,4 +109,4 @@ uninstall-doc:
# clean
clean-local:
- -$(RM) weechat.1 weechat_*.html
+ -$(RM) weechat.1 weechat-headless.1 weechat_*.html