2009-09-05 16:43:16 +02:00
|
|
|
#
|
2015-01-01 09:23:23 +01:00
|
|
|
# Copyright (C) 2003-2015 Sébastien Helleu <flashcode@flashtux.org>
|
2010-06-22 19:46:28 +02:00
|
|
|
# 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 \
|
2014-05-25 12:25:58 +02:00
|
|
|
weechat.1.pl.asciidoc \
|
|
|
|
cmdline_options.pl.asciidoc \
|
|
|
|
weechat_user.pl.asciidoc \
|
|
|
|
weechat_scripting.pl.asciidoc \
|
|
|
|
weechat_faq.pl.asciidoc \
|
|
|
|
weechat_quickstart.pl.asciidoc \
|
|
|
|
weechat_tester.pl.asciidoc \
|
|
|
|
$(wildcard autogen/user/*.asciidoc)
|
2009-09-05 16:43:16 +02:00
|
|
|
|
2013-07-31 13:28:59 +02:00
|
|
|
if MAN
|
2013-12-23 23:38:15 +01:00
|
|
|
man_targets = weechat.1
|
|
|
|
man_install = install-man
|
|
|
|
man_uninstall = uninstall-man
|
2013-07-31 13:28:59 +02:00
|
|
|
endif
|
|
|
|
if DOC
|
2013-12-23 23:38:15 +01:00
|
|
|
doc_targets = weechat_user.pl.html \
|
|
|
|
weechat_scripting.pl.html \
|
2011-10-12 14:41:33 +02:00
|
|
|
weechat_faq.pl.html \
|
2009-09-05 21:49:28 +02:00
|
|
|
weechat_quickstart.pl.html \
|
|
|
|
weechat_tester.pl.html
|
2013-07-31 13:28:59 +02:00
|
|
|
doc_install = install-doc
|
|
|
|
doc_uninstall = uninstall-doc
|
|
|
|
endif
|
|
|
|
all-local: $(man_targets) $(doc_targets)
|
2009-09-05 21:49:28 +02:00
|
|
|
|
2013-12-23 23:38:15 +01:00
|
|
|
# man page
|
2014-05-25 12:25:58 +02:00
|
|
|
weechat.1: weechat.1.pl.asciidoc cmdline_options.pl.asciidoc
|
2015-01-03 10:06:36 +01:00
|
|
|
-mkdir tmp_man
|
|
|
|
cp -f $(abs_top_srcdir)/doc/pl/weechat.1.pl.asciidoc ./tmp_man/
|
|
|
|
cp -f $(abs_top_srcdir)/doc/pl/cmdline_options.pl.asciidoc ./tmp_man/
|
|
|
|
(cd tmp_man && $(A2X) -a revision="WeeChat $(VERSION)" -d manpage -f manpage -L weechat.1.pl.asciidoc)
|
|
|
|
mv -f tmp_man/weechat.1 .
|
|
|
|
rm -rf tmp_man
|
2013-12-23 23:38:15 +01:00
|
|
|
|
|
|
|
# user's guide
|
2015-01-14 07:35:56 +01:00
|
|
|
weechat_user.pl.html: weechat_user.pl.asciidoc cmdline_options.pl.asciidoc $(wildcard autogen/user/*.asciidoc) $(abs_top_srcdir)/doc/asciidoc_toc2.css
|
|
|
|
$(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc_toc2.css -f $(abs_top_srcdir)/doc/asciidoc.conf -o weechat_user.pl.html $(abs_top_srcdir)/doc/pl/weechat_user.pl.asciidoc
|
2013-12-23 23:38:15 +01:00
|
|
|
|
2011-10-12 14:41:33 +02:00
|
|
|
# scripting guide
|
2015-01-14 07:35:56 +01:00
|
|
|
weechat_scripting.pl.html: weechat_scripting.pl.asciidoc $(abs_top_srcdir)/doc/asciidoc_toc2.css
|
|
|
|
$(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc_toc2.css -f $(abs_top_srcdir)/doc/asciidoc.conf -o weechat_scripting.pl.html $(abs_top_srcdir)/doc/pl/weechat_scripting.pl.asciidoc
|
2011-10-12 14:41:33 +02:00
|
|
|
|
2009-09-05 21:49:28 +02:00
|
|
|
# FAQ
|
2015-01-14 07:35:56 +01:00
|
|
|
weechat_faq.pl.html: weechat_faq.pl.asciidoc $(abs_top_srcdir)/doc/asciidoc_toc.css
|
|
|
|
$(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc_toc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_faq.pl.html $(abs_top_srcdir)/doc/pl/weechat_faq.pl.asciidoc
|
2009-09-05 16:43:16 +02:00
|
|
|
|
|
|
|
# quickstart
|
2015-01-14 07:35:56 +01:00
|
|
|
weechat_quickstart.pl.html: weechat_quickstart.pl.asciidoc $(abs_top_srcdir)/doc/asciidoc_toc2.css
|
|
|
|
$(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc_toc2.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_quickstart.pl.html $(abs_top_srcdir)/doc/pl/weechat_quickstart.pl.asciidoc
|
2009-09-05 16:43:16 +02:00
|
|
|
|
2009-09-05 21:49:28 +02:00
|
|
|
# tester's guide
|
2015-01-14 07:35:56 +01:00
|
|
|
weechat_tester.pl.html: weechat_tester.pl.asciidoc $(abs_top_srcdir)/doc/asciidoc_toc2.css
|
|
|
|
$(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc_toc2.css -f $(abs_top_srcdir)/doc/asciidoc.conf -o weechat_tester.pl.html $(abs_top_srcdir)/doc/pl/weechat_tester.pl.asciidoc
|
2009-09-05 21:49:28 +02:00
|
|
|
|
2013-07-31 13:28:59 +02:00
|
|
|
# install man/docs
|
2009-09-05 16:43:16 +02:00
|
|
|
|
2013-07-31 13:28:59 +02:00
|
|
|
install-data-hook: $(man_install) $(doc_install)
|
|
|
|
|
|
|
|
install-man:
|
|
|
|
$(mkinstalldirs) $(DESTDIR)$(mandir)/pl/man1/
|
|
|
|
$(INSTALL_DATA) *.1 $(DESTDIR)$(mandir)/pl/man1/
|
|
|
|
|
|
|
|
install-doc:
|
2009-09-05 16:43:16 +02:00
|
|
|
$(mkinstalldirs) $(DESTDIR)$(docdir)/
|
|
|
|
$(INSTALL_DATA) *.html $(DESTDIR)$(docdir)/
|
|
|
|
|
2013-07-31 13:28:59 +02:00
|
|
|
# uninstall man/docs
|
|
|
|
|
|
|
|
uninstall-hook: $(man_uninstall) $(doc_uninstall)
|
|
|
|
|
|
|
|
uninstall-man:
|
2013-08-02 08:54:16 +02:00
|
|
|
$(RM) $(DESTDIR)$(mandir)/pl/man1/weechat.1
|
2013-07-31 13:28:59 +02:00
|
|
|
-rmdir $(DESTDIR)$(mandir)/pl/man1
|
2011-10-10 18:41:25 +02:00
|
|
|
|
2013-07-31 13:28:59 +02:00
|
|
|
uninstall-doc:
|
2011-10-10 18:41:25 +02:00
|
|
|
$(RM) $(DESTDIR)$(docdir)/*.pl.html
|
|
|
|
-rmdir $(DESTDIR)$(docdir)
|
|
|
|
|
2009-09-05 16:43:16 +02:00
|
|
|
# clean
|
|
|
|
|
|
|
|
clean-local:
|
2014-05-25 12:25:58 +02:00
|
|
|
-rm -f weechat.1 weechat.1.pl.asciidoc cmdline_options.pl.asciidoc
|
2009-09-05 16:43:16 +02:00
|
|
|
-rm -f *.html
|