aboutsummaryrefslogtreecommitdiffstats
path: root/docs/xen-api/Makefile
diff options
context:
space:
mode:
authorawilliam@xenbuild2.aw <awilliam@xenbuild2.aw>2007-01-31 10:30:54 -0700
committerawilliam@xenbuild2.aw <awilliam@xenbuild2.aw>2007-01-31 10:30:54 -0700
commit8e36c6490cab47a5b4acbd480a9f30f36d21fd6f (patch)
tree39eee25efcc0e8738a5e06b84daccb012fb516fc /docs/xen-api/Makefile
parent0bf55ad11aee51ec964904535b7a9ba0b694870f (diff)
parentf492dd97fb674fbf6fe86f3052a50098ed169201 (diff)
downloadxen-8e36c6490cab47a5b4acbd480a9f30f36d21fd6f.tar.gz
xen-8e36c6490cab47a5b4acbd480a9f30f36d21fd6f.tar.bz2
xen-8e36c6490cab47a5b4acbd480a9f30f36d21fd6f.zip
merge with xen-unstable.hg
Diffstat (limited to 'docs/xen-api/Makefile')
-rw-r--r--docs/xen-api/Makefile31
1 files changed, 25 insertions, 6 deletions
diff --git a/docs/xen-api/Makefile b/docs/xen-api/Makefile
index 7dfb1bfbec..dbc923137c 100644
--- a/docs/xen-api/Makefile
+++ b/docs/xen-api/Makefile
@@ -1,22 +1,41 @@
+#!/usr/bin/make -f
+
+XEN_ROOT=../..
+include $(XEN_ROOT)/Config.mk
+include $(XEN_ROOT)/docs/Docs.mk
+
+
TEX := $(wildcard *.tex)
EPS := $(wildcard *.eps)
EPSDOT := $(patsubst %.dot,%.eps,$(wildcard *.dot))
.PHONY: all
-all: xenapi.pdf xenapi.ps
+all: build
+
+.PHONY: build
+build: xenapi.pdf xenapi.ps
+
+install:
+ $(INSTALL_DIR) $(DESTDIR)$(pkgdocdir)/ps
+ $(INSTALL_DIR) $(DESTDIR)$(pkgdocdir)/pdf
+
+ cp xenapi.ps $(DESTDIR)$(pkgdocdir)/ps
+ cp xenapi.pdf $(DESTDIR)$(pkgdocdir)/pdf
+
xenapi.dvi: $(TEX) $(EPS) $(EPSDOT)
- latex xenapi.tex
- latex xenapi.tex
+ $(LATEX) xenapi.tex
+ $(LATEX) xenapi.tex
+ rm -f *.aux *.log
%.pdf: %.ps
- ps2pdf $< $@
+ $(PS2PDF) $< $@
%.ps: %.dvi
- dvips $< -o $@
+ $(DVIPS) $< -o $@
%.eps: %.dot
- dot -Tps $< >$@
+ $(DOT) -Tps $< >$@
.PHONY: clean
clean: