1 DISTCLEAN_TARGETS += clean-docs
3 # To pass additional parameters for asciidoc
5 I3POD2HTML = ./docs/i3-pod2html
7 ASCIIDOC_NOTOC_TARGETS = \
10 ASCIIDOC_TOC_TARGETS = \
11 docs/hacking-howto.html \
14 docs/multi-monitor.html \
17 docs/i3bar-protocol.html \
18 docs/layout-saving.html
21 $(ASCIIDOC_TOC_TARGETS) \
22 $(ASCIIDOC_NOTOC_TARGETS)
24 ASCIIDOC_CALL = $(V_ASCIIDOC)$(ASCIIDOC) -n $(ASCIIDOC_FLAGS) -o $@ $<
25 ASCIIDOC_TOC_CALL = $(V_ASCIIDOC)$(ASCIIDOC) -a toc -n $(ASCIIDOC_FLAGS) -o $@ $<
28 docs/lib-i3test.html \
29 docs/lib-i3test-test.html
31 docs/lib-i3test.html: testcases/lib/i3test.pm
32 $(V_POD2HTML)$(I3POD2HTML) $< $@
34 docs/lib-i3test-test.html: testcases/lib/i3test/Test.pm
35 $(V_POD2HTML)$(I3POD2HTML) $< $@
37 docs: $(ASCIIDOC_TARGETS) $(POD2HTML_TARGETS)
39 $(ASCIIDOC_TOC_TARGETS): docs/%.html: docs/%
42 $(ASCIIDOC_NOTOC_TARGETS): docs/%.html: docs/%
46 rm -f $(ASCIIDOC_TARGETS) $(POD2HTML_TARGETS)