From c469f30be595bcf70feee6e0982961c199f78583 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 31 Mar 2019 14:43:50 +0200 Subject: [PATCH] doc: fix generation of man page weechat-headless with autotools --- ChangeLog.adoc | 1 + doc/cs/Makefile.am | 11 +++++++---- doc/de/Makefile.am | 11 +++++++---- doc/en/Makefile.am | 11 +++++++---- doc/fr/Makefile.am | 11 +++++++---- doc/it/Makefile.am | 11 +++++++---- doc/ja/Makefile.am | 11 +++++++---- doc/pl/Makefile.am | 11 +++++++---- doc/ru/Makefile.am | 11 +++++++---- 9 files changed, 57 insertions(+), 32 deletions(-) diff --git a/ChangeLog.adoc b/ChangeLog.adoc index e02e89e0b..58d86e583 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -47,6 +47,7 @@ Bug fixes:: Build:: + * core: fix generation of man page weechat-headless with autotools * core: add CMake option "ENABLE_CODE_COVERAGE" to compile with code coverage options (CMake ≥ 3.0 is now required) * core: fix compilation on Mac OS (issue #1308) * lua: add detection of Lua 5.3 with autotools diff --git a/doc/cs/Makefile.am b/doc/cs/Makefile.am index 62e276f17..b9ab39d52 100644 --- a/doc/cs/Makefile.am +++ b/doc/cs/Makefile.am @@ -22,13 +22,15 @@ docdir = $(datadir)/doc/$(PACKAGE) EXTRA_DIST = CMakeLists.txt \ docinfo.html \ weechat.1.cs.adoc \ + weechat-headless.1.cs.adoc \ cmdline_options.cs.adoc \ weechat_quickstart.cs.adoc \ $(wildcard autogen/user/*.adoc) \ $(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 @@ -39,9 +41,11 @@ if DOC endif all-local: $(man_targets) $(doc_targets) -# man page +# man pages weechat.1: weechat.1.cs.adoc cmdline_options.cs.adoc $(ASCIIDOCTOR) -a revision="WeeChat $(VERSION)" -b manpage -o weechat.1 $(abs_top_srcdir)/doc/cs/weechat.1.cs.adoc +weechat-headless.1: weechat-headless.1.cs.adoc cmdline_options.cs.adoc + $(ASCIIDOCTOR) -a revision="WeeChat $(VERSION)" -b manpage -o weechat-headless.1 $(abs_top_srcdir)/doc/cs/weechat-headless.1.cs.adoc # quickstart weechat_quickstart.cs.html: weechat_quickstart.cs.adoc $(abs_top_srcdir)/doc/docinfo.html @@ -54,7 +58,6 @@ install-data-hook: $(man_install) $(doc_install) install-man: $(mkinstalldirs) $(DESTDIR)$(mandir)/cs/man1/ $(INSTALL_DATA) *.1 $(DESTDIR)$(mandir)/cs/man1/ - (cd '$(DESTDIR)$(mandir)/cs/man1/' && $(RM) weechat-headless.1 && $(LN_S) weechat.1 weechat-headless.1) install-doc: $(mkinstalldirs) $(DESTDIR)$(docdir)/ @@ -76,4 +79,4 @@ uninstall-doc: # clean clean-local: - -$(RM) weechat.1 weechat_*.html + -$(RM) weechat.1 weechat-headless.1 weechat_*.html diff --git a/doc/de/Makefile.am b/doc/de/Makefile.am index 230feb258..e71b2a081 100644 --- a/doc/de/Makefile.am +++ b/doc/de/Makefile.am @@ -23,6 +23,7 @@ docdir = $(datadir)/doc/$(PACKAGE) EXTRA_DIST = CMakeLists.txt \ docinfo.html \ weechat.1.de.adoc \ + weechat-headless.1.de.adoc \ cmdline_options.de.adoc \ weechat_user.de.adoc \ weechat_scripting.de.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.de.adoc cmdline_options.de.adoc $(ASCIIDOCTOR) -a revision="WeeChat $(VERSION)" -b manpage -o weechat.1 $(abs_top_srcdir)/doc/de/weechat.1.de.adoc +weechat-headless.1: weechat-headless.1.de.adoc cmdline_options.de.adoc + $(ASCIIDOCTOR) -a revision="WeeChat $(VERSION)" -b manpage -o weechat-headless.1 $(abs_top_srcdir)/doc/de/weechat-headless.1.de.adoc # user's guide weechat_user.de.html: weechat_user.de.adoc cmdline_options.de.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)/de/man1/ $(INSTALL_DATA) *.1 $(DESTDIR)$(mandir)/de/man1/ - (cd '$(DESTDIR)$(mandir)/de/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 diff --git a/doc/en/Makefile.am b/doc/en/Makefile.am index 7208b49d7..b45d18c61 100644 --- a/doc/en/Makefile.am +++ b/doc/en/Makefile.am @@ -23,6 +23,7 @@ docdir = $(datadir)/doc/$(PACKAGE) EXTRA_DIST = CMakeLists.txt \ docinfo.html \ weechat.1.en.adoc \ + weechat-headless.1.en.adoc \ cmdline_options.en.adoc \ weechat_user.en.adoc \ weechat_plugin_api.en.adoc \ @@ -36,7 +37,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 @@ -54,9 +56,11 @@ if DOC endif all-local: $(man_targets) $(doc_targets) -# man page +# man pages weechat.1: weechat.1.en.adoc cmdline_options.en.adoc $(ASCIIDOCTOR) -a revision="WeeChat $(VERSION)" -b manpage -o weechat.1 $(abs_top_srcdir)/doc/en/weechat.1.en.adoc +weechat-headless.1: weechat-headless.1.en.adoc cmdline_options.en.adoc + $(ASCIIDOCTOR) -a revision="WeeChat $(VERSION)" -b manpage -o weechat-headless.1 $(abs_top_srcdir)/doc/en/weechat-headless.1.en.adoc # user's guide weechat_user.en.html: weechat_user.en.adoc cmdline_options.en.adoc $(wildcard autogen/user/*.adoc) $(abs_top_srcdir)/doc/docinfo.html @@ -97,7 +101,6 @@ install-data-hook: $(man_install) $(doc_install) install-man: $(mkinstalldirs) $(DESTDIR)$(mandir)/man1/ $(INSTALL_DATA) *.1 $(DESTDIR)$(mandir)/man1/ - (cd '$(DESTDIR)$(mandir)/man1/' && $(RM) weechat-headless.1 && $(LN_S) weechat.1 weechat-headless.1) install-doc: $(mkinstalldirs) $(DESTDIR)$(docdir)/ @@ -119,4 +122,4 @@ uninstall-doc: # clean clean-local: - -$(RM) weechat.1 weechat_*.html + -$(RM) weechat.1 weechat-headless.1 weechat_*.html diff --git a/doc/fr/Makefile.am b/doc/fr/Makefile.am index 2a63e542e..01a0ec134 100644 --- a/doc/fr/Makefile.am +++ b/doc/fr/Makefile.am @@ -23,6 +23,7 @@ docdir = $(datadir)/doc/$(PACKAGE) EXTRA_DIST = CMakeLists.txt \ docinfo.html \ weechat.1.fr.adoc \ + weechat-headless.1.fr.adoc \ cmdline_options.fr.adoc \ weechat_user.fr.adoc \ weechat_plugin_api.fr.adoc \ @@ -36,7 +37,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 @@ -54,9 +56,11 @@ if DOC endif all-local: $(man_targets) $(doc_targets) -# man page +# man pages weechat.1: weechat.1.fr.adoc cmdline_options.fr.adoc $(ASCIIDOCTOR) -a revision="WeeChat $(VERSION)" -b manpage -o weechat.1 $(abs_top_srcdir)/doc/fr/weechat.1.fr.adoc +weechat-headless.1: weechat-headless.1.fr.adoc cmdline_options.fr.adoc + $(ASCIIDOCTOR) -a revision="WeeChat $(VERSION)" -b manpage -o weechat-headless.1 $(abs_top_srcdir)/doc/fr/weechat-headless.1.fr.adoc # user's guide weechat_user.fr.html: weechat_user.fr.adoc cmdline_options.fr.adoc $(wildcard autogen/user/*.adoc) $(abs_top_srcdir)/doc/docinfo.html @@ -97,7 +101,6 @@ install-data-hook: $(man_install) $(doc_install) install-man: $(mkinstalldirs) $(DESTDIR)$(mandir)/fr/man1/ $(INSTALL_DATA) *.1 $(DESTDIR)$(mandir)/fr/man1/ - (cd '$(DESTDIR)$(mandir)/fr/man1/' && $(RM) weechat-headless.1 && $(LN_S) weechat.1 weechat-headless.1) install-doc: $(mkinstalldirs) $(DESTDIR)$(docdir)/ @@ -119,4 +122,4 @@ uninstall-doc: # clean clean-local: - -$(RM) weechat.1 weechat_*.html + -$(RM) weechat.1 weechat-headless.1 weechat_*.html 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 diff --git a/doc/ja/Makefile.am b/doc/ja/Makefile.am index 3c7a59bd0..d6cbdce97 100644 --- a/doc/ja/Makefile.am +++ b/doc/ja/Makefile.am @@ -22,6 +22,7 @@ docdir = $(datadir)/doc/$(PACKAGE) EXTRA_DIST = CMakeLists.txt \ docinfo.html \ weechat.1.ja.adoc \ + weechat-headless.1.ja.adoc \ cmdline_options.ja.adoc \ weechat_user.ja.adoc \ weechat_plugin_api.ja.adoc \ @@ -35,7 +36,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 @@ -53,9 +55,11 @@ if DOC endif all-local: $(man_targets) $(doc_targets) -# man page +# man pages weechat.1: weechat.1.ja.adoc cmdline_options.ja.adoc $(ASCIIDOCTOR) -a revision="WeeChat $(VERSION)" -b manpage -o weechat.1 $(abs_top_srcdir)/doc/ja/weechat.1.ja.adoc +weechat-headless.1: weechat-headless.1.ja.adoc cmdline_options.ja.adoc + $(ASCIIDOCTOR) -a revision="WeeChat $(VERSION)" -b manpage -o weechat-headless.1 $(abs_top_srcdir)/doc/ja/weechat-headless.1.ja.adoc # user's guide weechat_user.ja.html: weechat_user.ja.adoc cmdline_options.ja.adoc $(wildcard autogen/user/*.adoc) $(abs_top_srcdir)/doc/docinfo.html @@ -96,7 +100,6 @@ install-data-hook: $(man_install) $(doc_install) install-man: $(mkinstalldirs) $(DESTDIR)$(mandir)/ja/man1/ $(INSTALL_DATA) *.1 $(DESTDIR)$(mandir)/ja/man1/ - (cd '$(DESTDIR)$(mandir)/ja/man1/' && $(RM) weechat-headless.1 && $(LN_S) weechat.1 weechat-headless.1) install-doc: $(mkinstalldirs) $(DESTDIR)$(docdir)/ @@ -118,4 +121,4 @@ uninstall-doc: # clean clean-local: - -$(RM) weechat.1 weechat_*.html + -$(RM) weechat.1 weechat-headless.1 weechat_*.html 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 diff --git a/doc/ru/Makefile.am b/doc/ru/Makefile.am index edb5443ae..c47d2412c 100644 --- a/doc/ru/Makefile.am +++ b/doc/ru/Makefile.am @@ -22,11 +22,13 @@ docdir = $(datadir)/doc/$(PACKAGE) EXTRA_DIST = CMakeLists.txt \ docinfo.html \ weechat.1.ru.adoc \ + weechat-headless.1.ru.adoc \ cmdline_options.ru.adoc \ weechat_quickstart.ru.adoc if MAN - man_targets = weechat.1 + man_targets = weechat.1 \ + weechat-headless.1 man_install = install-man man_uninstall = uninstall-man endif @@ -37,9 +39,11 @@ if DOC endif all-local: $(man_targets) $(doc_targets) -# man page +# man pages weechat.1: weechat.1.ru.adoc cmdline_options.ru.adoc $(ASCIIDOCTOR) -a revision="WeeChat $(VERSION)" -b manpage -o weechat.1 $(abs_top_srcdir)/doc/ru/weechat.1.ru.adoc +weechat-headless.1: weechat-headless.1.ru.adoc cmdline_options.ru.adoc + $(ASCIIDOCTOR) -a revision="WeeChat $(VERSION)" -b manpage -o weechat-headless.1 $(abs_top_srcdir)/doc/ru/weechat-headless.1.ru.adoc # quickstart weechat_quickstart.ru.html: weechat_quickstart.ru.adoc $(abs_top_srcdir)/doc/docinfo.html @@ -52,7 +56,6 @@ install-data-hook: $(man_install) $(doc_install) install-man: $(mkinstalldirs) $(DESTDIR)$(mandir)/ru/man1/ $(INSTALL_DATA) *.1 $(DESTDIR)$(mandir)/ru/man1/ - (cd '$(DESTDIR)$(mandir)/ru/man1/' && $(RM) weechat-headless.1 && $(LN_S) weechat.1 weechat-headless.1) install-doc: $(mkinstalldirs) $(DESTDIR)$(docdir)/ @@ -74,4 +77,4 @@ uninstall-doc: # clean clean-local: - -$(RM) weechat.1 weechat_*.html + -$(RM) weechat.1 weechat-headless.1 weechat_*.html