Files
ns-3-dev/doc/tutorial/in-process/Makefile
T
Craig Dowell f3c68e4a74 swap in new tutorial
--HG--
rename : doc/tutorial/Makefile => doc/tutorial/in-process/Makefile
rename : doc/tutorial/attributes.texi => doc/tutorial/in-process/attributes.texi
rename : doc/tutorial/figures/README => doc/tutorial/in-process/figures/README
rename : doc/tutorial/figures/dumbbell.dia => doc/tutorial/in-process/figures/dumbbell.dia
rename : doc/tutorial/figures/helpers.obj => doc/tutorial/in-process/figures/helpers.obj
rename : doc/tutorial/figures/oneobj.png => doc/tutorial/in-process/figures/oneobj.png
rename : doc/tutorial/figures/pp.dia => doc/tutorial/in-process/figures/pp.dia
rename : doc/tutorial/figures/star.dia => doc/tutorial/in-process/figures/star.dia
rename : doc/tutorial/figures/threeobj.png => doc/tutorial/in-process/figures/threeobj.png
rename : doc/tutorial/helpers.texi => doc/tutorial/in-process/helpers.texi
rename : doc/tutorial/introduction.texi => doc/tutorial/in-process/introduction.texi
rename : doc/tutorial/log.texi => doc/tutorial/in-process/log.texi
rename : doc/tutorial/other.texi => doc/tutorial/in-process/other.texi
rename : doc/tutorial/output.texi => doc/tutorial/in-process/output.texi
rename : doc/tutorial/statistics.texi => doc/tutorial/in-process/statistics.texi
rename : doc/tutorial/troubleshoot.texi => doc/tutorial/in-process/troubleshoot.texi
rename : doc/tutorial/tutorial.css => doc/tutorial/in-process/tutorial.css
rename : doc/tutorial/tutorial.texi => doc/tutorial/in-process/tutorial.texi
2008-06-28 19:46:55 -07:00

50 lines
1.5 KiB
Makefile

TEXI2HTML = texi2html
TEXI2PDF = texi2dvi --pdf
EPSTOPDF = epstopdf
TGIF = tgif
DIA = dia
CONVERT = convert
CSS = --css-include=tutorial.css
SPLIT = --split section
DIA_SOURCES = pp.dia dumbbell.dia star.dia
TGIF_SOURCES = helpers.obj
DIA_EPS = ${DIA_SOURCES:.dia=.eps}
DIA_PNG = ${DIA_SOURCES:.dia=.png}
DIA_PDF = ${DIA_SOURCES:.dia=.pdf}
TGIF_EPS = ${TGIF_SOURCES:.obj=.eps}
TGIF_PNG = ${TGIF_SOURCES:.obj=.png}
TGIF_PDF = ${TGIF_SOURCES:.obj=.pdf}
all: images html split-html pdf
# 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:
cd figures/; $(DIA) -t png $(DIA_SOURCES)
cd figures/; $(DIA) -t eps $(DIA_SOURCES)
cd figures/; $(foreach FILE,$(DIA_EPS),$(EPSTOPDF) $(FILE);)
cd figures/; $(TGIF) -print -png $(TGIF_SOURCES)
cd figures/; $(TGIF) -print -eps $(TGIF_SOURCES)
cd figures/; $(foreach FILE,$(TGIF_EPS),$(EPSTOPDF) $(FILE);)
html: images
$(TEXI2HTML) ${CSS} tutorial.texi
split-html: images
$(TEXI2HTML) ${CSS} ${SPLIT} tutorial.texi
pdf: images
$(TEXI2PDF) tutorial.texi
figures-clean:
cd figures/; rm -rf $(DIA_EPS); rm -rf $(DIA_PNG); rm -rf $(DIA_PDF)
cd figures/; rm -rf $(TGIF_EPS); rm -rf $(TGIF_PNG); rm -rf $(TGIF_PDF)
clean: figures-clean
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/