2012-06-17 14:31:45 +02:00
|
|
|
DISTCLEAN_TARGETS += clean-docs
|
|
|
|
|
|
|
|
# To pass additional parameters for asciidoc
|
|
|
|
ASCIIDOC = asciidoc
|
2012-09-10 12:03:14 +02:00
|
|
|
I3POD2HTML = ./docs/i3-pod2html
|
2012-06-17 14:31:45 +02:00
|
|
|
|
|
|
|
ASCIIDOC_NOTOC_TARGETS = \
|
2012-12-11 22:46:35 +01:00
|
|
|
docs/debugging.html
|
2012-06-17 14:31:45 +02:00
|
|
|
|
|
|
|
ASCIIDOC_TOC_TARGETS = \
|
|
|
|
docs/hacking-howto.html \
|
|
|
|
docs/userguide.html \
|
|
|
|
docs/ipc.html \
|
|
|
|
docs/multi-monitor.html \
|
|
|
|
docs/wsbar.html \
|
|
|
|
docs/testsuite.html \
|
2014-04-23 19:49:50 +02:00
|
|
|
docs/i3bar-protocol.html \
|
|
|
|
docs/layout-saving.html
|
2012-06-17 14:31:45 +02:00
|
|
|
|
|
|
|
ASCIIDOC_TARGETS = \
|
|
|
|
$(ASCIIDOC_TOC_TARGETS) \
|
|
|
|
$(ASCIIDOC_NOTOC_TARGETS)
|
|
|
|
|
|
|
|
ASCIIDOC_CALL = $(V_ASCIIDOC)$(ASCIIDOC) -n $(ASCIIDOC_FLAGS) -o $@ $<
|
|
|
|
ASCIIDOC_TOC_CALL = $(V_ASCIIDOC)$(ASCIIDOC) -a toc -n $(ASCIIDOC_FLAGS) -o $@ $<
|
|
|
|
|
2012-09-10 12:03:14 +02:00
|
|
|
POD2HTML_TARGETS = \
|
|
|
|
docs/lib-i3test.html \
|
|
|
|
docs/lib-i3test-test.html
|
|
|
|
|
|
|
|
docs/lib-i3test.html: testcases/lib/i3test.pm
|
|
|
|
$(V_POD2HTML)$(I3POD2HTML) $< $@
|
|
|
|
|
|
|
|
docs/lib-i3test-test.html: testcases/lib/i3test/Test.pm
|
|
|
|
$(V_POD2HTML)$(I3POD2HTML) $< $@
|
|
|
|
|
|
|
|
docs: $(ASCIIDOC_TARGETS) $(POD2HTML_TARGETS)
|
2012-06-17 14:31:45 +02:00
|
|
|
|
|
|
|
$(ASCIIDOC_TOC_TARGETS): docs/%.html: docs/%
|
|
|
|
$(ASCIIDOC_TOC_CALL)
|
|
|
|
|
|
|
|
$(ASCIIDOC_NOTOC_TARGETS): docs/%.html: docs/%
|
|
|
|
$(ASCIIDOC_CALL)
|
|
|
|
|
|
|
|
clean-docs:
|
2012-09-10 12:03:14 +02:00
|
|
|
rm -f $(ASCIIDOC_TARGETS) $(POD2HTML_TARGETS)
|