aboutsummaryrefslogtreecommitdiffstats
path: root/docs/Makefile
blob: 8d6a4dfe9821efa606f917dfb26bcf3209080088 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Generic LaTeX makefile.
#
# Xfig and tgif diagrams should be in the fig/ subdirectory.
# DOCUMENTS should be a list of the target Postscript files.

DOCUMENTS = interface.ps interface.pdf

GFX  = $(patsubst %.obj, %.eps, $(wildcard figs/*.obj))
GFX += $(patsubst %.fig, %.eps, $(wildcard figs/*.fig))

all: $(DOCUMENTS)

pristine: clean
	rm -f $(DOCUMENTS)

clean:
	rm -f .word_count *.aux *.dvi *.bbl *.blg *.glo *.idx *~ 
	rm -f *.ilg *.log *.ind *.toc *.bak core
	rm -f figs/*.eps $(DOCUMENTS)

install: $(DOCUMENTS)
	mkdir -p $(prefix)/usr/share/doc/xen
	cp -a $(DOCUMENTS) VBD-HOWTO.txt Xen-HOWTO.txt $(prefix)/usr/share/doc/xen

%.pdf: %.ps
	ps2pdf $< $@

%.ps: %.dvi $(GFX)
	dvips -Ppdf -G0 -o $@ $<

%.dvi: %.tex
	latex $*
	if [ -e $*.toc ] ; then latex $* ; fi

%.eps: %.fig
	fig2dev -L eps $< $@

%.eps: %.obj
	tgif -print -color -eps $<