]> git.sur5r.net Git - i3/i3/blobdiff - docs/Makefile
Merge branch 'fix-dump-log-errmsg'
[i3/i3] / docs / Makefile
index 9d70243df13be1154cb72a2d97bb1f0cae252535..fc41236f2acf5276ea1957f38bc8aa5b54e1bf40 100644 (file)
@@ -1,26 +1,36 @@
+# To pass additional parameters for asciidoc
+ASCIIDOC=asciidoc
 
-all: hacking-howto.html debugging.html userguide.html ipc.html multi-monitor.html wsbar.html refcard.pdf
+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 $<
+       $(ASCIIDOC) -a toc -n $<
 
 multi-monitor.html: multi-monitor
-       asciidoc -a toc -n $<
+       $(ASCIIDOC) -a toc -n $<
 
 wsbar.html: wsbar
-       asciidoc -a toc -n $<
-
-refcard.pdf: refcard.tex
-       pdflatex refcard.tex && pdflatex refcard.tex
+       $(ASCIIDOC) -a toc -n $<
 
 clean:
-       find . -regex ".*\.\(aux\|out\|log\|toc\|bm\|pdf\|dvi\|log\|html\)" -exec rm '{}' \;
+       rm -f ${ASCIIDOC_TARGETS}