Files
unison/doc/tutorial/Makefile

35 lines
1.0 KiB
Makefile
Raw Normal View History

TEXI2HTML = texi2html
TEXI2PDF = texi2dvi --pdf
EPSTOPDF = epstopdf
TGIF = tgif
CONVERT = convert
CSS = --css-include=tutorial.css
2008-04-03 21:08:28 -07:00
SPLIT = --split section
2008-04-03 23:04:25 -07:00
TGIF_SOURCES = helpers.obj
TGIF_EPS = ${TGIF_SOURCES:.obj=.eps}
TGIF_PNG = ${TGIF_SOURCES:.obj=.eps}
2008-04-03 21:08:28 -07:00
all: images html split-html pdf
2008-04-04 08:47:41 -07:00
# Note: tgif requires a valid x display to convert from .obj to .png.
# If running this makefile on a remote console, the X virtual frame
# buffer may be needed (xorg-x11-server-Xvfb) to provide a "fake"
# display
images:
2008-04-03 23:15:16 -07:00
cd figures/; $(TGIF) -print -eps $(TGIF_SOURCES)
2008-04-04 08:47:41 -07:00
cd figures/; $(TGIF) -print -png $(TGIF_SOURCES)
2008-04-03 23:15:16 -07:00
cd figures/; $(foreach FILE,$(TGIF_EPS),$(EPSTOPDF) $(FILE);)
2008-04-03 21:08:28 -07:00
html: images
$(TEXI2HTML) ${CSS} tutorial.texi
2008-04-03 21:08:28 -07:00
split-html: images
$(TEXI2HTML) ${CSS} ${SPLIT} tutorial.texi
pdf: images
$(TEXI2PDF) tutorial.texi
clean:
2008-04-03 23:15:16 -07:00
rm -rf tutorial.aux tutorial.cp tutorial.cps tutorial.fn tutorial.ky tutorial.pg tutorial.tp tutorial.vr tutorial.toc tutorial.log tutorial.pdf tutorial.html tutorial/