mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
47 lines
1.1 KiB
Makefile
47 lines
1.1 KiB
Makefile
|
|
# 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 interface.html user.ps \
|
|
user.pdf user.html xend.ps xend.pdf xend.html
|
|
|
|
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)
|
|
rm -rf user/
|
|
rm -rf interface/
|
|
|
|
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 $* >/dev/null
|
|
if [ -e $*.toc ] ; then latex $* >/dev/null ; fi
|
|
|
|
%.eps: %.fig
|
|
fig2dev -L eps $< $@
|
|
|
|
%.eps: %.obj
|
|
tgif -print -color -eps $<
|
|
|
|
%.html: %.tex
|
|
latex2html --split 0 --nonavigation --noinfo --math $< 1>/dev/null 2>/dev/null
|