doc/manual/Makefile
author Tom Henderson <tomh@tomh.org>
Tue, 22 Sep 2009 20:54:05 -0700
changeset 5244 a163562a2622
parent 4480 565c460ffd5a
child 5429 768e3f3187f7
permissions -rw-r--r--
Manual formatting fixes
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3274
eaa3a345b05e Split out non-tutorial sections from tutorial; place into a doc/manual directory
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
     1
TEXI2HTML = texi2html
eaa3a345b05e Split out non-tutorial sections from tutorial; place into a doc/manual directory
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
     2
TEXI2PDF = texi2dvi --pdf
eaa3a345b05e Split out non-tutorial sections from tutorial; place into a doc/manual directory
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
     3
EPSTOPDF = epstopdf
eaa3a345b05e Split out non-tutorial sections from tutorial; place into a doc/manual directory
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
     4
DIA = dia
eaa3a345b05e Split out non-tutorial sections from tutorial; place into a doc/manual directory
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
     5
CONVERT = convert
eaa3a345b05e Split out non-tutorial sections from tutorial; place into a doc/manual directory
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
     6
CSS = --css-include=manual.css
eaa3a345b05e Split out non-tutorial sections from tutorial; place into a doc/manual directory
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
     7
SPLIT = --split section
eaa3a345b05e Split out non-tutorial sections from tutorial; place into a doc/manual directory
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
     8
3991
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
     9
FIGURES = figures
4127
3c5cb537653f add wifi-architecture figure to manual
Tom Henderson <tomh@tomh.org>
parents: 4024
diff changeset
    10
DOC_FIGURES = ..
3991
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    11
VPATH = $(FIGURES)
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    12
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    13
IMAGES_EPS = \
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    14
	$(FIGURES)/internet-node-send.eps \
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    15
	$(FIGURES)/internet-node-recv.eps \
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    16
	$(FIGURES)/packet.eps \
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    17
	$(FIGURES)/node.eps \
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    18
	$(FIGURES)/buffer.eps \
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    19
	$(FIGURES)/sockets-overview.eps \
4480
565c460ffd5a some revisions to the routing section of the manual
Tom Henderson <tomh@tomh.org>
parents: 4134
diff changeset
    20
	$(FIGURES)/routing.eps \
565c460ffd5a some revisions to the routing section of the manual
Tom Henderson <tomh@tomh.org>
parents: 4134
diff changeset
    21
	$(FIGURES)/routing-specialization.eps \
3991
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    22
	$(FIGURES)/testbed.eps \
4024
dfd0bc16dc99 add device chapters to manual
Tom Henderson <tomh@tomh.org>
parents: 3991
diff changeset
    23
	$(FIGURES)/emulated-channel.eps \
4127
3c5cb537653f add wifi-architecture figure to manual
Tom Henderson <tomh@tomh.org>
parents: 4024
diff changeset
    24
	$(FIGURES)/snir.eps \
3c5cb537653f add wifi-architecture figure to manual
Tom Henderson <tomh@tomh.org>
parents: 4024
diff changeset
    25
	$(DOC_FIGURES)/WifiArchitecture.eps
3991
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    26
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    27
IMAGES_PNG = ${IMAGES_EPS:.eps=.png}
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    28
IMAGES_PDF = ${IMAGES_EPS:.eps=.pdf}
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    29
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    30
IMAGES = $(IMAGES_EPS) $(IMAGES_PNG) $(IMAGES_PDF)
3978
e1e886e0edec start of emulation chapter in manual
Craig Dowell <craigdo@ee.washington.edu>
parents: 3739
diff changeset
    31
3991
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    32
CHAPTERS = \
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    33
	manual.texi \
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    34
	attributes.texi \
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    35
	callbacks.texi \
4024
dfd0bc16dc99 add device chapters to manual
Tom Henderson <tomh@tomh.org>
parents: 3991
diff changeset
    36
	csma.texi \
3991
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    37
	emulation.texi \
4134
a104b592cba3 start a manual section on new models
Tom Henderson <tomh@tomh.org>
parents: 4127
diff changeset
    38
	new-models.texi \
3991
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    39
	node.texi \
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    40
	objects.texi \
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    41
	other.texi \
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    42
	output.texi \
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    43
	packets.texi \
4024
dfd0bc16dc99 add device chapters to manual
Tom Henderson <tomh@tomh.org>
parents: 3991
diff changeset
    44
	point-to-point.texi \
3991
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    45
	random.texi \
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    46
	realtime.texi \
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    47
	routing.texi \
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    48
	sockets.texi \
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    49
	statistics.texi \
4024
dfd0bc16dc99 add device chapters to manual
Tom Henderson <tomh@tomh.org>
parents: 3991
diff changeset
    50
	troubleshoot.texi \
dfd0bc16dc99 add device chapters to manual
Tom Henderson <tomh@tomh.org>
parents: 3991
diff changeset
    51
	wifi.texi
3274
eaa3a345b05e Split out non-tutorial sections from tutorial; place into a doc/manual directory
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    52
3991
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    53
%.eps : %.dia; $(DIA) -t eps $< -e $@
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    54
%.png : %.dia; $(DIA) -t png $< -e $@
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    55
%.pdf : %.eps; $(EPSTOPDF) $< -o=$@
3274
eaa3a345b05e Split out non-tutorial sections from tutorial; place into a doc/manual directory
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    56
5244
a163562a2622 Manual formatting fixes
Tom Henderson <tomh@tomh.org>
parents: 4480
diff changeset
    57
all:  $(IMAGES) version manual.pdf manual.html manual/manual.html
3991
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    58
5244
a163562a2622 Manual formatting fixes
Tom Henderson <tomh@tomh.org>
parents: 4480
diff changeset
    59
manual.pdf: version $(IMAGES) $(CHAPTERS)
3991
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    60
	$(TEXI2PDF) manual.texi
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    61
5244
a163562a2622 Manual formatting fixes
Tom Henderson <tomh@tomh.org>
parents: 4480
diff changeset
    62
manual.html: version $(IMAGES) $(CHAPTERS)
3274
eaa3a345b05e Split out non-tutorial sections from tutorial; place into a doc/manual directory
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    63
	$(TEXI2HTML) ${CSS} manual.texi
eaa3a345b05e Split out non-tutorial sections from tutorial; place into a doc/manual directory
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    64
5244
a163562a2622 Manual formatting fixes
Tom Henderson <tomh@tomh.org>
parents: 4480
diff changeset
    65
manual/manual.html: version $(IMAGES) $(CHAPTERS)
3274
eaa3a345b05e Split out non-tutorial sections from tutorial; place into a doc/manual directory
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    66
	$(TEXI2HTML) ${CSS} ${SPLIT} manual.texi
eaa3a345b05e Split out non-tutorial sections from tutorial; place into a doc/manual directory
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    67
3991
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    68
figures-clean:
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    69
	rm -rf $(IMAGES)
3274
eaa3a345b05e Split out non-tutorial sections from tutorial; place into a doc/manual directory
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    70
5244
a163562a2622 Manual formatting fixes
Tom Henderson <tomh@tomh.org>
parents: 4480
diff changeset
    71
version:
a163562a2622 Manual formatting fixes
Tom Henderson <tomh@tomh.org>
parents: 4480
diff changeset
    72
	echo -n "ns-" > VERSION-PREFIX; cat VERSION-PREFIX ../../VERSION > VERSION; rm -rf VERSION-PREFIX
a163562a2622 Manual formatting fixes
Tom Henderson <tomh@tomh.org>
parents: 4480
diff changeset
    73
3991
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    74
clean: 	figures-clean
5244
a163562a2622 Manual formatting fixes
Tom Henderson <tomh@tomh.org>
parents: 4480
diff changeset
    75
	rm -rf manual.aux manual.cp manual.cps manual.fn manual.ky manual.pg manual.tp
a163562a2622 Manual formatting fixes
Tom Henderson <tomh@tomh.org>
parents: 4480
diff changeset
    76
	rm -rf manual.vr manual.toc manual.log manual.pdf manual.html manual/ VERSION