21
21
docdir = $(datadir)/doc/$(PACKAGE)
23
23
EXTRA_DIST = CMakeLists.txt \
25
cmdline_options.en.txt \
27
weechat_plugin_api.en.txt \
28
weechat_scripting.en.txt \
30
weechat_quickstart.en.txt \
31
weechat_tester.en.txt \
32
weechat_relay_protocol.en.txt \
34
$(wildcard autogen/user/*.txt) \
35
$(wildcard autogen/plugin_api/*.txt)
24
weechat.1.en.asciidoc \
25
cmdline_options.en.asciidoc \
26
weechat_user.en.asciidoc \
27
weechat_plugin_api.en.asciidoc \
28
weechat_scripting.en.asciidoc \
29
weechat_faq.en.asciidoc \
30
weechat_quickstart.en.asciidoc \
31
weechat_tester.en.asciidoc \
32
weechat_relay_protocol.en.asciidoc \
33
weechat_dev.en.asciidoc \
34
$(wildcard autogen/user/*.asciidoc) \
35
$(wildcard autogen/plugin_api/*.asciidoc)
38
38
man_targets = weechat.1
54
54
all-local: $(man_targets) $(doc_targets)
57
weechat.1: weechat.1.en.txt cmdline_options.en.txt
58
cp -f $(abs_top_srcdir)/doc/en/weechat.1.en.txt .
59
cp -f $(abs_top_srcdir)/doc/en/cmdline_options.en.txt .
60
$(A2X) -a revision="WeeChat $(VERSION)" -d manpage -f manpage -L weechat.1.en.txt
57
weechat.1: weechat.1.en.asciidoc cmdline_options.en.asciidoc
58
cp -f $(abs_top_srcdir)/doc/en/weechat.1.en.asciidoc .
59
cp -f $(abs_top_srcdir)/doc/en/cmdline_options.en.asciidoc .
60
$(A2X) -a revision="WeeChat $(VERSION)" -d manpage -f manpage -L weechat.1.en.asciidoc
63
weechat_user.en.html: weechat_user.en.txt cmdline_options.en.txt $(wildcard autogen/user/*.txt)
64
$(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_user.en.html $(abs_top_srcdir)/doc/en/weechat_user.en.txt
63
weechat_user.en.html: weechat_user.en.asciidoc cmdline_options.en.asciidoc $(wildcard autogen/user/*.asciidoc)
64
$(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_user.en.html $(abs_top_srcdir)/doc/en/weechat_user.en.asciidoc
66
66
# plugin API reference
67
weechat_plugin_api.en.html: weechat_plugin_api.en.txt $(wildcard autogen/plugin_api/*.txt)
68
$(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_plugin_api.en.html $(abs_top_srcdir)/doc/en/weechat_plugin_api.en.txt
67
weechat_plugin_api.en.html: weechat_plugin_api.en.asciidoc $(wildcard autogen/plugin_api/*.asciidoc)
68
$(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_plugin_api.en.html $(abs_top_srcdir)/doc/en/weechat_plugin_api.en.asciidoc
71
weechat_scripting.en.html: weechat_scripting.en.txt
72
$(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_scripting.en.html $(abs_top_srcdir)/doc/en/weechat_scripting.en.txt
71
weechat_scripting.en.html: weechat_scripting.en.asciidoc
72
$(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_scripting.en.html $(abs_top_srcdir)/doc/en/weechat_scripting.en.asciidoc
75
weechat_faq.en.html: weechat_faq.en.txt
76
$(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_faq.en.html $(abs_top_srcdir)/doc/en/weechat_faq.en.txt
75
weechat_faq.en.html: weechat_faq.en.asciidoc
76
$(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_faq.en.html $(abs_top_srcdir)/doc/en/weechat_faq.en.asciidoc
79
weechat_quickstart.en.html: weechat_quickstart.en.txt
80
$(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_quickstart.en.html $(abs_top_srcdir)/doc/en/weechat_quickstart.en.txt
79
weechat_quickstart.en.html: weechat_quickstart.en.asciidoc
80
$(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_quickstart.en.html $(abs_top_srcdir)/doc/en/weechat_quickstart.en.asciidoc
83
weechat_tester.en.html: weechat_tester.en.txt
84
$(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_tester.en.html $(abs_top_srcdir)/doc/en/weechat_tester.en.txt
83
weechat_tester.en.html: weechat_tester.en.asciidoc
84
$(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_tester.en.html $(abs_top_srcdir)/doc/en/weechat_tester.en.asciidoc
87
weechat_relay_protocol.en.html: weechat_relay_protocol.en.asciidoc
88
$(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_relay_protocol.en.html $(abs_top_srcdir)/doc/en/weechat_relay_protocol.en.asciidoc
86
90
# developer's guide
87
weechat_dev.en.html: weechat_dev.en.txt
88
$(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_dev.en.html $(abs_top_srcdir)/doc/en/weechat_dev.en.txt
91
weechat_relay_protocol.en.html: weechat_relay_protocol.en.txt
92
$(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_relay_protocol.en.html $(abs_top_srcdir)/doc/en/weechat_relay_protocol.en.txt
91
weechat_dev.en.html: weechat_dev.en.asciidoc
92
$(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_dev.en.html $(abs_top_srcdir)/doc/en/weechat_dev.en.asciidoc