2006-01-02 22:16:54 +00:00
#
2010-06-22 19:46:28 +02:00
# Copyright (C) 2003-2010 Sebastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2006 Julien Louis <ptitlouis@sysif.net>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
2006-01-02 22:16:54 +00:00
# it under the terms of the GNU General Public License as published by
2007-07-02 12:25:13 +00:00
# the Free Software Foundation; either version 3 of the License, or
2006-01-02 22:16:54 +00:00
# (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,
2006-01-02 22:16:54 +00: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/>.
2006-01-02 22:16:54 +00:00
#
docdir = $( datadir) /doc/$( PACKAGE)
2009-05-28 16:07:40 +02:00
EXTRA_DIST = CMakeLists.txt \
2010-01-24 10:47:53 +01:00
weechat_user.en.txt \
weechat_plugin_api.en.txt \
weechat_scripting.en.txt \
weechat_faq.en.txt \
weechat_quickstart.en.txt \
weechat_tester.en.txt \
$( wildcard autogen/user/*.txt) \
$( wildcard autogen/plugin_api/*.txt)
2009-05-28 16:07:40 +02:00
all-local : weechat_user .en .html \
weechat_plugin_api.en.html \
weechat_scripting.en.html \
weechat_faq.en.html \
weechat_quickstart.en.html \
weechat_tester.en.html
# user's guide
weechat_user.en.html : weechat_user .en .txt $( wildcard autogen /user /*.txt )
2010-12-06 11:30:33 +01:00
$( ASCIIDOC) -a toc -a toclevels = 3 -a date = ` date "+%F" ` -a revision = " $( VERSION) " -a stylesheet = ` pwd ` /../asciidoc.css -n -o weechat_user.en.html weechat_user.en.txt
2009-05-28 16:07:40 +02:00
# plugin API reference
weechat_plugin_api.en.html : weechat_plugin_api .en .txt $( wildcard autogen /plugin_api /*.txt )
2010-12-06 11:30:33 +01:00
$( ASCIIDOC) -a toc -a toclevels = 4 -a date = ` date "+%F" ` -a revision = " $( VERSION) " -a stylesheet = ` pwd ` /../asciidoc.css -n -o weechat_plugin_api.en.html weechat_plugin_api.en.txt
2009-05-28 16:07:40 +02:00
# scripting guide
weechat_scripting.en.html : weechat_scripting .en .txt
2010-12-06 11:30:33 +01:00
$( ASCIIDOC) -a toc -a toclevels = 3 -a date = ` date "+%F" ` -a revision = " $( VERSION) " -a stylesheet = ` pwd ` /../asciidoc.css -n -o weechat_scripting.en.html weechat_scripting.en.txt
2009-05-28 16:07:40 +02:00
# FAQ
weechat_faq.en.html : weechat_faq .en .txt
2010-12-06 11:30:33 +01:00
$( ASCIIDOC) -a toc -a date = ` date "+%F" ` -a revision = " $( VERSION) " -a stylesheet = ` pwd ` /../asciidoc.css -n -o weechat_faq.en.html weechat_faq.en.txt
2009-05-28 16:07:40 +02:00
# quickstart
weechat_quickstart.en.html : weechat_quickstart .en .txt
2010-12-06 11:30:33 +01:00
$( ASCIIDOC) -a toc -a date = ` date "+%F" ` -a revision = " $( VERSION) " -a stylesheet = ` pwd ` /../asciidoc.css -n -o weechat_quickstart.en.html weechat_quickstart.en.txt
2009-05-28 16:07:40 +02:00
# tester's guide
weechat_tester.en.html : weechat_tester .en .txt
2010-12-06 11:30:33 +01:00
$( ASCIIDOC) -a toc -a date = ` date "+%F" ` -a revision = " $( VERSION) " -a stylesheet = ` pwd ` /../asciidoc.css -n -o weechat_tester.en.html weechat_tester.en.txt
2006-12-01 22:38:20 +00:00
2006-01-02 22:16:54 +00:00
# install docs
install-data-hook :
2009-05-28 16:07:40 +02:00
$( mkinstalldirs) $( DESTDIR) $( docdir) /
$( INSTALL_DATA) *.html $( DESTDIR) $( docdir) /
2006-01-02 22:16:54 +00:00
# clean
clean-local :
2009-05-28 16:07:40 +02:00
-rm -f *.html