doc: fix generation of man page weechat-headless with autotools

v2.8-utf8proc
Sébastien Helleu 2019-03-31 14:43:50 +02:00
parent 5980a4deb8
commit c469f30be5
9 changed files with 57 additions and 32 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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