Whamcloud - gitweb
LUDOC-266 protocol: Initial content for new repository
[doc/protocol.git] / Makefile
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..ed552c0
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,26 @@
+FIGURES = figures/mkdir1.png
+
+.SUFFIXES : .gnuplot .gv .pdf .png
+
+.PHONY: all
+all: protocol.html protocol.pdf
+
+.PHONY: check
+check: protocol.txt
+       @echo "Are there lines with trailing white space?"
+       build/whitespace.sh $<
+
+protocol.html: $(FIGURES) protocol.txt
+       asciidoc protocol.txt
+
+protocol.pdf: $(FIGURES) protocol.txt
+       a2x -f pdf --fop protocol.txt
+
+.gv.png:
+       dot -Tpng $< -o $@
+
+.PHONY : clean
+clean:
+       rm -f *.xml *.html *.pdf figures/*.png
+
+