summaryrefslogtreecommitdiff
path: root/doc/pl
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/pl
parent5980a4deb8c1c71522784b04e9b0b4fa64d6aba5 (diff)
downloadweechat-c469f30be595bcf70feee6e0982961c199f78583.zip
doc: fix generation of man page weechat-headless with autotools
Diffstat (limited to 'doc/pl')
-rw-r--r--doc/pl/Makefile.am11
1 files changed, 7 insertions, 4 deletions
diff --git a/doc/pl/Makefile.am b/doc/pl/Makefile.am
index 4bbc5f0f0..46c06dc19 100644
--- a/doc/pl/Makefile.am
+++ b/doc/pl/Makefile.am
@@ -23,6 +23,7 @@ docdir = $(datadir)/doc/$(PACKAGE)
EXTRA_DIST = CMakeLists.txt \
docinfo.html \
weechat.1.pl.adoc \
+ weechat-headless.1.pl.adoc \
cmdline_options.pl.adoc \
weechat_user.pl.adoc \
weechat_scripting.pl.adoc \
@@ -32,7 +33,8 @@ EXTRA_DIST = CMakeLists.txt \
$(wildcard autogen/user/*.adoc)
if MAN
- man_targets = weechat.1
+ man_targets = weechat.1 \
+ weechat-headless.1
man_install = install-man
man_uninstall = uninstall-man
endif
@@ -47,9 +49,11 @@ if DOC
endif
all-local: $(man_targets) $(doc_targets)
-# man page
+# man pages
weechat.1: weechat.1.pl.adoc cmdline_options.pl.adoc
$(ASCIIDOCTOR) -a revision="WeeChat $(VERSION)" -b manpage -o weechat.1 $(abs_top_srcdir)/doc/pl/weechat.1.pl.adoc
+weechat-headless.1: weechat-headless.1.pl.adoc cmdline_options.pl.adoc
+ $(ASCIIDOCTOR) -a revision="WeeChat $(VERSION)" -b manpage -o weechat-headless.1 $(abs_top_srcdir)/doc/pl/weechat-headless.1.pl.adoc
# user's guide
weechat_user.pl.html: weechat_user.pl.adoc cmdline_options.pl.adoc $(wildcard autogen/user/*.adoc) $(abs_top_srcdir)/doc/docinfo.html
@@ -78,7 +82,6 @@ install-data-hook: $(man_install) $(doc_install)
install-man:
$(mkinstalldirs) $(DESTDIR)$(mandir)/pl/man1/
$(INSTALL_DATA) *.1 $(DESTDIR)$(mandir)/pl/man1/
- (cd '$(DESTDIR)$(mandir)/pl/man1/' && $(RM) weechat-headless.1 && $(LN_S) weechat.1 weechat-headless.1)
install-doc:
$(mkinstalldirs) $(DESTDIR)$(docdir)/
@@ -100,4 +103,4 @@ uninstall-doc:
# clean
clean-local:
- -$(RM) weechat.1 weechat_*.html
+ -$(RM) weechat.1 weechat-headless.1 weechat_*.html