1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-05 17:23:15 +02:00

doc: fix compilation of man pages with autotools in source directory

This commit is contained in:
Sébastien Helleu
2015-01-03 10:06:36 +01:00
parent d8e8053bea
commit 6d1251415f
7 changed files with 37 additions and 18 deletions
+1
View File
@@ -69,6 +69,7 @@ https://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
* core: display time in bare display only if option
weechat.look.buffer_time_format is not an empty string
* core: fix translation of message displayed after /upgrade
* doc: fix compilation of man pages with autotools in source directory
* api: fix truncated process output in hook_process() (closes #266)
* api: fix crash when reading config options with NULL value (closes #238)
* tests: fix compilation of tests with clang (closes #275)
+6 -3
View File
@@ -48,9 +48,12 @@ all-local: $(man_targets) $(doc_targets)
# man page
weechat.1: weechat.1.de.asciidoc cmdline_options.de.asciidoc
cp -f $(abs_top_srcdir)/doc/de/weechat.1.de.asciidoc .
cp -f $(abs_top_srcdir)/doc/de/cmdline_options.de.asciidoc .
$(A2X) -a revision="WeeChat $(VERSION)" -d manpage -f manpage -L weechat.1.de.asciidoc
-mkdir tmp_man
cp -f $(abs_top_srcdir)/doc/de/weechat.1.de.asciidoc ./tmp_man/
cp -f $(abs_top_srcdir)/doc/de/cmdline_options.de.asciidoc ./tmp_man/
(cd tmp_man && $(A2X) -a revision="WeeChat $(VERSION)" -d manpage -f manpage -L weechat.1.de.asciidoc)
mv -f tmp_man/weechat.1 .
rm -rf tmp_man
# user's guide
weechat_user.de.html: weechat_user.de.asciidoc cmdline_options.de.asciidoc $(wildcard autogen/user/*.asciidoc)
+6 -3
View File
@@ -55,9 +55,12 @@ all-local: $(man_targets) $(doc_targets)
# man page
weechat.1: weechat.1.en.asciidoc cmdline_options.en.asciidoc
cp -f $(abs_top_srcdir)/doc/en/weechat.1.en.asciidoc .
cp -f $(abs_top_srcdir)/doc/en/cmdline_options.en.asciidoc .
$(A2X) -a revision="WeeChat $(VERSION)" -d manpage -f manpage -L weechat.1.en.asciidoc
-mkdir tmp_man
cp -f $(abs_top_srcdir)/doc/en/weechat.1.en.asciidoc ./tmp_man/
cp -f $(abs_top_srcdir)/doc/en/cmdline_options.en.asciidoc ./tmp_man/
(cd tmp_man && $(A2X) -a revision="WeeChat $(VERSION)" -d manpage -f manpage -L weechat.1.en.asciidoc)
mv -f tmp_man/weechat.1 .
rm -rf tmp_man
# user's guide
weechat_user.en.html: weechat_user.en.asciidoc cmdline_options.en.asciidoc $(wildcard autogen/user/*.asciidoc)
+6 -3
View File
@@ -55,9 +55,12 @@ all-local: $(man_targets) $(doc_targets)
# man page
weechat.1: weechat.1.fr.asciidoc cmdline_options.fr.asciidoc
cp -f $(abs_top_srcdir)/doc/fr/weechat.1.fr.asciidoc .
cp -f $(abs_top_srcdir)/doc/fr/cmdline_options.fr.asciidoc .
$(A2X) -a revision="WeeChat $(VERSION)" -d manpage -f manpage -L weechat.1.fr.asciidoc
-mkdir tmp_man
cp -f $(abs_top_srcdir)/doc/fr/weechat.1.fr.asciidoc ./tmp_man/
cp -f $(abs_top_srcdir)/doc/fr/cmdline_options.fr.asciidoc ./tmp_man/
(cd tmp_man && $(A2X) -a revision="WeeChat $(VERSION)" -d manpage -f manpage -L weechat.1.fr.asciidoc)
mv -f tmp_man/weechat.1 .
rm -rf tmp_man
# user's guide
weechat_user.fr.html: weechat_user.fr.asciidoc cmdline_options.fr.asciidoc $(wildcard autogen/user/*.asciidoc)
+6 -3
View File
@@ -50,9 +50,12 @@ all-local: $(man_targets) $(doc_targets)
# man page
weechat.1: weechat.1.it.asciidoc cmdline_options.it.asciidoc
cp -f $(abs_top_srcdir)/doc/it/weechat.1.it.asciidoc .
cp -f $(abs_top_srcdir)/doc/it/cmdline_options.it.asciidoc .
$(A2X) -a revision="WeeChat $(VERSION)" -d manpage -f manpage -L weechat.1.it.asciidoc
-mkdir tmp_man
cp -f $(abs_top_srcdir)/doc/it/weechat.1.it.asciidoc ./tmp_man/
cp -f $(abs_top_srcdir)/doc/it/cmdline_options.it.asciidoc ./tmp_man/
(cd tmp_man && $(A2X) -a revision="WeeChat $(VERSION)" -d manpage -f manpage -L weechat.1.it.asciidoc)
mv -f tmp_man/weechat.1 .
rm -rf tmp_man
# user's guide
weechat_user.it.html: weechat_user.it.asciidoc cmdline_options.it.asciidoc $(wildcard autogen/user/*.asciidoc)
+6 -3
View File
@@ -54,9 +54,12 @@ all-local: $(man_targets) $(doc_targets)
# man page
weechat.1: weechat.1.ja.asciidoc cmdline_options.ja.asciidoc
cp -f $(abs_top_srcdir)/doc/ja/weechat.1.ja.asciidoc .
cp -f $(abs_top_srcdir)/doc/ja/cmdline_options.ja.asciidoc .
$(A2X) -a revision="WeeChat $(VERSION)" -d manpage -f manpage -L weechat.1.ja.asciidoc
-mkdir tmp_man
cp -f $(abs_top_srcdir)/doc/ja/weechat.1.ja.asciidoc ./tmp_man/
cp -f $(abs_top_srcdir)/doc/ja/cmdline_options.ja.asciidoc ./tmp_man/
(cd tmp_man && $(A2X) -a revision="WeeChat $(VERSION)" -d manpage -f manpage -L weechat.1.ja.asciidoc)
mv -f tmp_man/weechat.1 .
rm -rf tmp_man
# user's guide
weechat_user.ja.html: weechat_user.ja.asciidoc cmdline_options.ja.asciidoc $(wildcard autogen/user/*.asciidoc)
+6 -3
View File
@@ -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)