aboutsummaryrefslogtreecommitdiffstats
path: root/docs/xen-api/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'docs/xen-api/Makefile')
-rw-r--r--docs/xen-api/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/docs/xen-api/Makefile b/docs/xen-api/Makefile
new file mode 100644
index 0000000000..7dfb1bfbec
--- /dev/null
+++ b/docs/xen-api/Makefile
@@ -0,0 +1,23 @@
+TEX := $(wildcard *.tex)
+EPS := $(wildcard *.eps)
+EPSDOT := $(patsubst %.dot,%.eps,$(wildcard *.dot))
+
+.PHONY: all
+all: xenapi.pdf xenapi.ps
+
+xenapi.dvi: $(TEX) $(EPS) $(EPSDOT)
+ latex xenapi.tex
+ latex xenapi.tex
+
+%.pdf: %.ps
+ ps2pdf $< $@
+
+%.ps: %.dvi
+ dvips $< -o $@
+
+%.eps: %.dot
+ dot -Tps $< >$@
+
+.PHONY: clean
+clean:
+ rm -f *.pdf *.ps *.dvi *.aux *.log $(EPSDOT)