source: trunk/packages/xen-3.1/xen-3.1/docs/xen-api/Makefile @ 34

Last change on this file since 34 was 34, checked in by hartmans, 18 years ago

Add xen and xen-common

  • Property svn:mime-type set to text/script
File size: 804 bytes
Line 
1#!/usr/bin/make -f
2
3XEN_ROOT=../..
4include $(XEN_ROOT)/Config.mk
5include $(XEN_ROOT)/docs/Docs.mk
6
7
8TEX := $(wildcard *.tex)
9EPS := $(wildcard *.eps)
10EPSDOT := $(patsubst %.dot,%.eps,$(wildcard *.dot))
11
12.PHONY: all
13all: build
14
15.PHONY: build
16build: xenapi.pdf xenapi.ps
17
18install:
19        $(INSTALL_DIR) $(DESTDIR)$(pkgdocdir)/ps
20        $(INSTALL_DIR) $(DESTDIR)$(pkgdocdir)/pdf
21
22        cp xenapi.ps $(DESTDIR)$(pkgdocdir)/ps
23        cp xenapi.pdf $(DESTDIR)$(pkgdocdir)/pdf
24
25
26xenapi.dvi: $(TEX) $(EPS) $(EPSDOT)
27        $(LATEX) xenapi.tex
28        $(LATEX) xenapi.tex
29        rm -f *.aux *.log
30
31%.pdf: %.ps
32        $(PS2PDF) $< $@
33
34%.ps: %.dvi
35        $(DVIPS) $< -o $@
36
37%.eps: %.dot
38        $(DOT) -Tps $< >$@
39
40xenapi-datamodel-graph.eps: xenapi-datamodel-graph.dot
41        $(NEATO) -Goverlap=false -Tps $< >$@
42
43.PHONY: clean
44clean:
45        rm -f *.pdf *.ps *.dvi *.aux *.log $(EPSDOT)
Note: See TracBrowser for help on using the repository browser.