+# To pass additional parameters for asciidoc
+ASCIIDOC=asciidoc
-all: hacking-howto.html debugging.html userguide.html
+ASCIIDOC_TARGETS:=hacking-howto.html debugging.html debugging-release-version.html userguide.html ipc.html multi-monitor.html wsbar.html testsuite.html i3bar-protocol.html
+
+all: ${ASCIIDOC_TARGETS}
hacking-howto.html: hacking-howto
- asciidoc -a toc -n $<
+ $(ASCIIDOC) -a toc -n $<
+
+i3bar-protocol.html: i3bar-protocol
+ $(ASCIIDOC) -a toc -n $<
debugging.html: debugging
- asciidoc -n $<
+ $(ASCIIDOC) -n $<
+
+debugging-release-version.html: debugging-release-version
+ $(ASCIIDOC) -n $<
userguide.html: userguide
- asciidoc -a toc -n $<
+ $(ASCIIDOC) -a toc -n $<
+
+testsuite.html: testsuite
+ $(ASCIIDOC) -a toc -n $<
+
+ipc.html: ipc
+ $(ASCIIDOC) -a toc -n $<
+
+multi-monitor.html: multi-monitor
+ $(ASCIIDOC) -a toc -n $<
+
+wsbar.html: wsbar
+ $(ASCIIDOC) -a toc -n $<
clean:
- rm -f */*.{aux,log,toc,bm,pdf,dvi}
- rm -f *.log *.html
+ rm -f ${ASCIIDOC_TARGETS}