]> git.sur5r.net Git - i3/i3/blob - docs/docs.mk
i3bar: add binding indicator width to workspace buttons width
[i3/i3] / docs / docs.mk
1 DISTCLEAN_TARGETS += clean-docs
2
3 # To pass additional parameters for asciidoc
4 ASCIIDOC = asciidoc
5 I3POD2HTML = ./docs/i3-pod2html
6
7 ASCIIDOC_NOTOC_TARGETS = \
8         docs/debugging.html
9
10 ASCIIDOC_TOC_TARGETS = \
11         docs/hacking-howto.html \
12         docs/userguide.html \
13         docs/ipc.html \
14         docs/multi-monitor.html \
15         docs/wsbar.html \
16         docs/testsuite.html \
17         docs/i3bar-protocol.html \
18         docs/layout-saving.html
19
20 ASCIIDOC_TARGETS = \
21         $(ASCIIDOC_TOC_TARGETS) \
22         $(ASCIIDOC_NOTOC_TARGETS)
23
24 ASCIIDOC_CALL = $(V_ASCIIDOC)$(ASCIIDOC) -n $(ASCIIDOC_FLAGS) -o $@ $<
25 ASCIIDOC_TOC_CALL = $(V_ASCIIDOC)$(ASCIIDOC) -a toc -n $(ASCIIDOC_FLAGS) -o $@ $<
26
27 POD2HTML_TARGETS = \
28         docs/lib-i3test.html \
29         docs/lib-i3test-test.html
30
31 docs/lib-i3test.html: testcases/lib/i3test.pm
32         $(V_POD2HTML)$(I3POD2HTML) $< $@
33
34 docs/lib-i3test-test.html: testcases/lib/i3test/Test.pm
35         $(V_POD2HTML)$(I3POD2HTML) $< $@
36
37 docs: $(ASCIIDOC_TARGETS) $(POD2HTML_TARGETS)
38
39 $(ASCIIDOC_TOC_TARGETS): docs/%.html: docs/%
40         $(ASCIIDOC_TOC_CALL)
41
42 $(ASCIIDOC_NOTOC_TARGETS): docs/%.html: docs/%
43         $(ASCIIDOC_CALL)
44
45 clean-docs:
46         rm -f $(ASCIIDOC_TARGETS) $(POD2HTML_TARGETS)