2009-09-05 16:43:16 +02: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
2009-09-05 16:43:16 +02: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-09-05 16:43:16 +02: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-09-05 16:43:16 +02:00
#
docdir = $( datadir) /doc/$( PACKAGE)
EXTRA_DIST = CMakeLists.txt \
2010-01-24 10:47:53 +01:00
weechat_faq.pl.txt \
weechat_quickstart.pl.txt \
weechat_tester.pl.txt
2009-09-05 16:43:16 +02:00
2009-09-05 21:49:28 +02:00
all-local : weechat_faq .pl .html \
weechat_quickstart.pl.html \
weechat_tester.pl.html
# FAQ
weechat_faq.pl.html : weechat_faq .pl .txt
2010-12-06 11:30:33 +01:00
$( ASCIIDOC) -a toc -a toc-title= 'Spis treści' -a date = ` date "+%F" ` -a revision = " $( VERSION) " -a stylesheet = ` pwd ` /../asciidoc.css -n -o weechat_faq.pl.html weechat_faq.pl.txt
2009-09-05 16:43:16 +02:00
# quickstart
weechat_quickstart.pl.html : weechat_quickstart .pl .txt
2010-12-06 11:30:33 +01:00
$( ASCIIDOC) -a toc -a toc-title= 'Spis treści' -a date = ` date "+%F" ` -a revision = " $( VERSION) " -a stylesheet = ` pwd ` /../asciidoc.css -n -o weechat_quickstart.pl.html weechat_quickstart.pl.txt
2009-09-05 16:43:16 +02:00
2009-09-05 21:49:28 +02:00
# tester's guide
weechat_tester.pl.html : weechat_tester .pl .txt
2010-12-06 11:30:33 +01:00
$( ASCIIDOC) -a toc -a toc-title= 'Spis treści' -a date = ` date "+%F" ` -a revision = " $( VERSION) " -a stylesheet = ` pwd ` /../asciidoc.css -n -o weechat_tester.pl.html weechat_tester.pl.txt
2009-09-05 21:49:28 +02:00
2009-09-05 16:43:16 +02:00
# install docs
install-data-hook :
$( mkinstalldirs) $( DESTDIR) $( docdir) /
$( INSTALL_DATA) *.html $( DESTDIR) $( docdir) /
# clean
clean-local :
-rm -f *.html