2009-11-18 21:36:21 +01:00
#
2016-01-01 11:09:53 +01:00
# Copyright (C) 2003-2016 Sébastien Helleu <flashcode@flashtux.org>
2010-06-22 19:46:28 +02:00
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
2009-11-18 21:36:21 +01:00
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
2010-06-22 19:46:28 +02:00
# WeeChat is distributed in the hope that it will be useful,
2009-11-18 21:36:21 +01:00
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
2010-06-22 19:46:28 +02:00
# along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
2009-11-18 21:36:21 +01:00
#
docdir = $( datadir) /doc/$( PACKAGE)
EXTRA_DIST = CMakeLists.txt \
2014-05-25 12:25:58 +02:00
weechat.1.it.asciidoc \
cmdline_options.it.asciidoc \
weechat_user.it.asciidoc \
weechat_plugin_api.it.asciidoc \
weechat_scripting.it.asciidoc \
weechat_faq.it.asciidoc \
weechat_quickstart.it.asciidoc \
weechat_tester.it.asciidoc \
$( wildcard autogen/user/*.asciidoc) \
$( wildcard autogen/plugin_api/*.asciidoc)
2009-11-18 21:36:21 +01:00
2013-07-31 13:28:59 +02:00
i f M A N
2013-08-02 08:54:16 +02:00
man_targets = weechat.1
2013-07-31 13:28:59 +02:00
man_install = install-man
man_uninstall = uninstall-man
e n d i f
i f D O C
doc_targets = weechat_user.it.html \
2010-03-23 18:05:07 +01:00
weechat_plugin_api.it.html \
2010-04-11 13:17:03 +02:00
weechat_scripting.it.html \
2009-12-04 12:11:12 +01:00
weechat_faq.it.html \
2009-11-22 11:50:13 +01:00
weechat_quickstart.it.html \
2009-11-18 21:36:21 +01:00
weechat_tester.it.html
2013-07-31 13:28:59 +02:00
doc_install = install-doc
doc_uninstall = uninstall-doc
e n d i f
all-local : $( man_targets ) $( doc_targets )
2009-11-18 21:36:21 +01:00
2013-06-28 20:08:16 +02:00
# man page
2014-05-25 12:25:58 +02:00
weechat.1 : weechat .1.it .asciidoc cmdline_options .it .asciidoc
2016-05-03 21:31:55 +02:00
$( ASCIIDOCTOR) -a revision = " WeeChat $( VERSION) " -b manpage -o weechat.1 $( abs_top_srcdir) /doc/it/weechat.1.it.asciidoc
2013-06-28 20:08:16 +02:00
2009-12-04 12:11:12 +01:00
# user's guide
2016-05-03 21:31:55 +02:00
weechat_user.it.html : weechat_user .it .asciidoc cmdline_options .it .asciidoc $( wildcard autogen /user /*.asciidoc ) $( abs_top_srcdir ) /doc /docinfo .html
$( ASCIIDOCTOR) -a revision = " $( VERSION) " -a sectanchors -a source-highlighter= highlight.js -o weechat_user.it.html $( abs_top_srcdir) /doc/it/weechat_user.it.asciidoc
2009-12-04 12:11:12 +01:00
2010-03-23 18:05:07 +01:00
# plugin API reference
2016-05-03 21:31:55 +02:00
weechat_plugin_api.it.html : weechat_plugin_api .it .asciidoc $( wildcard autogen /plugin_api /*.asciidoc ) $( abs_top_srcdir ) /doc /docinfo .html
$( ASCIIDOCTOR) -a revision = " $( VERSION) " -a sectanchors -a source-highlighter= highlight.js -o weechat_plugin_api.it.html $( abs_top_srcdir) /doc/it/weechat_plugin_api.it.asciidoc
2010-03-23 18:05:07 +01:00
2010-04-11 13:17:03 +02:00
# scripting guide
2016-05-03 21:31:55 +02:00
weechat_scripting.it.html : weechat_scripting .it .asciidoc $( abs_top_srcdir ) /doc /docinfo .html
$( ASCIIDOCTOR) -a revision = " $( VERSION) " -a sectanchors -a source-highlighter= highlight.js -o weechat_scripting.it.html $( abs_top_srcdir) /doc/it/weechat_scripting.it.asciidoc
2010-04-11 13:17:03 +02:00
2009-11-22 11:50:13 +01:00
# FAQ
2016-05-03 21:31:55 +02:00
weechat_faq.it.html : weechat_faq .it .asciidoc $( abs_top_srcdir ) /doc /docinfo .html
$( ASCIIDOCTOR) -a revision = " $( VERSION) " -a sectanchors -a source-highlighter= highlight.js -o weechat_faq.it.html $( abs_top_srcdir) /doc/it/weechat_faq.it.asciidoc
2009-11-22 11:50:13 +01:00
2009-11-18 21:36:21 +01:00
# quickstart
2016-05-03 21:31:55 +02:00
weechat_quickstart.it.html : weechat_quickstart .it .asciidoc $( abs_top_srcdir ) /doc /docinfo .html
$( ASCIIDOCTOR) -a revision = " $( VERSION) " -a sectanchors -a source-highlighter= highlight.js -o weechat_quickstart.it.html $( abs_top_srcdir) /doc/it/weechat_quickstart.it.asciidoc
2009-11-18 21:36:21 +01:00
# tester's guide
2016-05-03 21:31:55 +02:00
weechat_tester.it.html : weechat_tester .it .asciidoc $( abs_top_srcdir ) /doc /docinfo .html
$( ASCIIDOCTOR) -a revision = " $( VERSION) " -a sectanchors -a source-highlighter= highlight.js -o weechat_tester.it.html $( abs_top_srcdir) /doc/it/weechat_tester.it.asciidoc
2009-11-18 21:36:21 +01:00
2013-07-31 13:28:59 +02:00
# install man/docs
2009-11-18 21:36:21 +01:00
2013-07-31 13:28:59 +02:00
install-data-hook : $( man_install ) $( doc_install )
install-man :
2013-06-28 20:08:16 +02:00
$( mkinstalldirs) $( DESTDIR) $( mandir) /it/man1/
$( INSTALL_DATA) *.1 $( DESTDIR) $( mandir) /it/man1/
2013-07-31 13:28:59 +02:00
install-doc :
2009-11-18 21:36:21 +01:00
$( mkinstalldirs) $( DESTDIR) $( docdir) /
$( INSTALL_DATA) *.html $( DESTDIR) $( docdir) /
2013-07-31 13:28:59 +02:00
# uninstall man/docs
2011-10-10 18:41:25 +02:00
2013-07-31 13:28:59 +02:00
uninstall-hook : $( man_uninstall ) $( doc_uninstall )
uninstall-man :
2013-08-02 08:54:16 +02:00
$( RM) $( DESTDIR) $( mandir) /it/man1/weechat.1
2013-06-28 20:08:16 +02:00
-rmdir $( DESTDIR) $( mandir) /it/man1
2013-07-31 13:28:59 +02:00
uninstall-doc :
2011-10-10 18:41:25 +02:00
$( RM) $( DESTDIR) $( docdir) /*.it.html
-rmdir $( DESTDIR) $( docdir)
2009-11-18 21:36:21 +01:00
# clean
clean-local :
2016-05-03 21:31:55 +02:00
-rm -f weechat.1 weechat_*.html