Initial checkin of OpenFlow specification LaTeX source.
[openvswitch] / doc / of-spec / Makefile
1 TARGET=openflow-spec-v0.9-draft3
2
3 BIBTEX := bibtex
4 TGIF   := tgif
5 XFIG   := xfig
6 GNUPLOT:= gnuplot
7
8 SOURCES=openflow-spec-v0.9-draft3.tex\
9         appendix.tex
10
11 all: $(TARGET).ps
12 pdf: all
13
14 $(TARGET).pdf: Makefile  $(SOURCES)
15         ./make_latex_input.pl
16         texi2pdf $(TARGET).tex
17
18 color: $(TARGET).pdf
19         pdflatex $(TARGET).tex
20         pdftops $(TARGET).pdf
21
22 $(TARGET).ps: $(TARGET).pdf
23         pdftops $(TARGET).pdf
24
25 %.pdf : %.fig #Makefile
26         fig2dev -L pdf -b 1 $< $@
27
28 %.eps : %.dia #Makefile
29         dia --nosplash -e $@ $<
30
31 %.eps : %.obj
32         TMPDIR=/tmp $(TGIF) -print -eps $<
33
34
35 %.pdf : %.eps #Makefile
36         epstopdf $<
37
38 clean:
39         rm -f *.aux *.log *.out *.bbl *.blg *~ *.bak $(TARGET).ps $(TARGET).pdf 
40         rm -rf define enum struct