summaryrefslogtreecommitdiff
path: root/doc/pl
diff options
context:
space:
mode:
Diffstat (limited to 'doc/pl')
-rw-r--r--doc/pl/Makefile.am9
1 files changed, 6 insertions, 3 deletions
diff --git a/doc/pl/Makefile.am b/doc/pl/Makefile.am
index 29909d44b..26851d795 100644
--- a/doc/pl/Makefile.am
+++ b/doc/pl/Makefile.am
@@ -48,9 +48,12 @@ all-local: $(man_targets) $(doc_targets)
# man page
weechat.1: weechat.1.pl.asciidoc cmdline_options.pl.asciidoc
- cp -f $(abs_top_srcdir)/doc/pl/weechat.1.pl.asciidoc .
- cp -f $(abs_top_srcdir)/doc/pl/cmdline_options.pl.asciidoc .
- $(A2X) -a revision="WeeChat $(VERSION)" -d manpage -f manpage -L weechat.1.pl.asciidoc
+ -mkdir tmp_man
+ cp -f $(abs_top_srcdir)/doc/pl/weechat.1.pl.asciidoc ./tmp_man/
+ cp -f $(abs_top_srcdir)/doc/pl/cmdline_options.pl.asciidoc ./tmp_man/
+ (cd tmp_man && $(A2X) -a revision="WeeChat $(VERSION)" -d manpage -f manpage -L weechat.1.pl.asciidoc)
+ mv -f tmp_man/weechat.1 .
+ rm -rf tmp_man
# user's guide
weechat_user.pl.html: weechat_user.pl.asciidoc cmdline_options.pl.asciidoc $(wildcard autogen/user/*.asciidoc)