doc/manual/Makefile
author Tom Henderson <tomh@tomh.org>
Mon, 19 Oct 2009 07:54:31 -0700
changeset 5434 81a3858041a8
parent 5429 768e3f3187f7
child 5514 3bf9272d9eaf
permissions -rw-r--r--
additional manual cleanup
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 \
5429
768e3f3187f7 add figure for manual overview
Tom Henderson <tomh@tomh.org>
parents: 5244
diff changeset
    20
	$(FIGURES)/software-organization.eps \
4480
565c460ffd5a some revisions to the routing section of the manual
Tom Henderson <tomh@tomh.org>
parents: 4134
diff changeset
    21
	$(FIGURES)/routing.eps \
565c460ffd5a some revisions to the routing section of the manual
Tom Henderson <tomh@tomh.org>
parents: 4134
diff changeset
    22
	$(FIGURES)/routing-specialization.eps \
3991
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    23
	$(FIGURES)/testbed.eps \
4024
dfd0bc16dc99 add device chapters to manual
Tom Henderson <tomh@tomh.org>
parents: 3991
diff changeset
    24
	$(FIGURES)/emulated-channel.eps \
4127
3c5cb537653f add wifi-architecture figure to manual
Tom Henderson <tomh@tomh.org>
parents: 4024
diff changeset
    25
	$(FIGURES)/snir.eps \
3c5cb537653f add wifi-architecture figure to manual
Tom Henderson <tomh@tomh.org>
parents: 4024
diff changeset
    26
	$(DOC_FIGURES)/WifiArchitecture.eps
3991
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    27
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    28
IMAGES_PNG = ${IMAGES_EPS:.eps=.png}
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    29
IMAGES_PDF = ${IMAGES_EPS:.eps=.pdf}
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    30
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    31
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
    32
3991
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    33
CHAPTERS = \
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    34
	manual.texi \
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    35
	attributes.texi \
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    36
	callbacks.texi \
4024
dfd0bc16dc99 add device chapters to manual
Tom Henderson <tomh@tomh.org>
parents: 3991
diff changeset
    37
	csma.texi \
3991
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    38
	emulation.texi \
4134
a104b592cba3 start a manual section on new models
Tom Henderson <tomh@tomh.org>
parents: 4127
diff changeset
    39
	new-models.texi \
3991
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    40
	node.texi \
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    41
	objects.texi \
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    42
	other.texi \
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    43
	output.texi \
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    44
	packets.texi \
4024
dfd0bc16dc99 add device chapters to manual
Tom Henderson <tomh@tomh.org>
parents: 3991
diff changeset
    45
	point-to-point.texi \
3991
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    46
	random.texi \
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    47
	realtime.texi \
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    48
	routing.texi \
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    49
	sockets.texi \
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    50
	statistics.texi \
4024
dfd0bc16dc99 add device chapters to manual
Tom Henderson <tomh@tomh.org>
parents: 3991
diff changeset
    51
	troubleshoot.texi \
dfd0bc16dc99 add device chapters to manual
Tom Henderson <tomh@tomh.org>
parents: 3991
diff changeset
    52
	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
    53
3991
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    54
%.eps : %.dia; $(DIA) -t eps $< -e $@
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    55
%.png : %.dia; $(DIA) -t png $< -e $@
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    56
%.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
    57
5244
a163562a2622 Manual formatting fixes
Tom Henderson <tomh@tomh.org>
parents: 4480
diff changeset
    58
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
    59
5244
a163562a2622 Manual formatting fixes
Tom Henderson <tomh@tomh.org>
parents: 4480
diff changeset
    60
manual.pdf: version $(IMAGES) $(CHAPTERS)
3991
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    61
	$(TEXI2PDF) manual.texi
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    62
5244
a163562a2622 Manual formatting fixes
Tom Henderson <tomh@tomh.org>
parents: 4480
diff changeset
    63
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
    64
	$(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
    65
5244
a163562a2622 Manual formatting fixes
Tom Henderson <tomh@tomh.org>
parents: 4480
diff changeset
    66
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
    67
	$(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
    68
3991
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    69
figures-clean:
36052c1dd7ab cleanup manual Makefile
Craig Dowell <craigdo@ee.washington.edu>
parents: 3978
diff changeset
    70
	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
    71
5244
a163562a2622 Manual formatting fixes
Tom Henderson <tomh@tomh.org>
parents: 4480
diff changeset
    72
version:
a163562a2622 Manual formatting fixes
Tom Henderson <tomh@tomh.org>
parents: 4480
diff changeset
    73
	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
    74
5434
81a3858041a8 additional manual cleanup
Tom Henderson <tomh@tomh.org>
parents: 5429
diff changeset
    75
texi-clean: 	
5244
a163562a2622 Manual formatting fixes
Tom Henderson <tomh@tomh.org>
parents: 4480
diff changeset
    76
	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
    77
	rm -rf manual.vr manual.toc manual.log manual.pdf manual.html manual/ VERSION 
5434
81a3858041a8 additional manual cleanup
Tom Henderson <tomh@tomh.org>
parents: 5429
diff changeset
    78
81a3858041a8 additional manual cleanup
Tom Henderson <tomh@tomh.org>
parents: 5429
diff changeset
    79
clean:	figures-clean texi-clean