Began preparing slides for talk today to IPO.
[bkuhn:talks.git] / IPO-2012 / Makefile
1 # Makefile for Presentation
2 #
3 # You can change the PRESENTATION_BASE below, or if you like, or set it as
4 # an environment variable before you type make.
5
6 ifndef PRESENTATION_BASE
7 PRESENTATION_BASE=ipo
8 INSTALL_DIR=/tmp/ipo/
9 endif
10
11 DO_INCREMENTAL_POINTS =
12
13
14 # This should be the path to your checkout of the repository.  Under that
15 # directory, you must have a checkout of /Admin/Forms/TeX.
16
17 PATH := $(PATH):/usr/share/tex4ht
18
19
20 PANDOC=/usr/bin/pandoc
21 TEX4HT=tex4ht
22 T4HT=t4ht
23 PDFLATEX = pdflatex
24 LATEX = /usr/bin/latex
25 BIBTEX = bibtex
26 FIG2DEV = fig2dev
27 DVIPS=/usr/bin/dvips
28
29 PDF_FIGS = ui/conservancy/logo.pdf
30 EPS_FIGS = ui/conservancy/logo.eps
31
32 all:    err $(PRESENTATION_BASE).ps $(PRESENTATION_BASE).html
33 all:    $(PRESENTATION_BASE).html
34
35 .SUFFIXES: .fig .postscript .eps .pdf .pstex_t .pstex .ps .dvi .tex
36
37 .postscript.pdf:
38         ps2pdf $< $@
39
40 .postscript.eps:
41         ps2epsi $< $@
42
43 .dvi.ps:
44         $(DVIPS) $< -o $@
45
46 .tex.dvi:
47         $(LATEX) $<
48
49 .fig.pdf:
50         $(FIG2DEV) -L pdf -p "portrait" -c $< > $@
51
52 .fig.pstex_t:
53         $(FIG2DEV) -L pstex_t $< > $@
54
55 .fig.pstex:
56         $(FIG2DEV) -L pstex $< > $@
57
58 $(PRESENTATION_BASE).tex: $(PDF_FIGS) $(PRESENTATION_BASE).markdown
59         $(PANDOC) -S -s -f markdown -t latex $(PRESENTATION_BASE).markdown -o $(PRESENTATION_BASE).tex
60
61 $(PRESENTATION_BASE).pdf: $(PRESENTATION_BASE).tex $(PDF_FIGS)
62         $(PANDOC) -S -s -f markdown -t latex $(PRESENTATION_BASE).markdown -o $(PRESENTATION_BASE).tex
63         $(PDFLATEX)  $(PRESENTATION_BASE).tex
64         $(PDFLATEX)  $(PRESENTATION_BASE).tex
65
66 $(PRESENTATION_BASE).html: $(PRESENTATION_BASE).markdown
67         $(PANDOC) $(DO_INCREMENTAL_POINTS) -s -S --template ./ui/conservancy/pandoc-s5-template.html -f markdown -t s5 $(PRESENTATION_BASE).markdown -o $(PRESENTATION_BASE).html
68
69 $(PRESENTATION_BASE).dvi: $(PRESENTATION_BASE).tex $(EPS_FIGS)
70         $(LATEX)  $(PRESENTATION_BASE).tex
71         $(LATEX)  $(PRESENTATION_BASE).tex
72
73 clean:
74         /bin/rm -f $(PRESENTATION_BASE).ps $(PRESENTATION_BASE).pdf $(PRESENTATION_BASE).log texput.log $(PRESENTATION_BASE).lg $(PRESENTATION_BASE).tmp $(PRESENTATION_BASE).xref *.4ct *.4tc *.aux *.dvi $(PRESENTATION_BASE)*.html *.idv *.lg *.tmp $(PRESENTATION_BASE).css $(PRESENTATION_BASE).log $(PRESENTATION_BASE).out $(PRESENTATION_BASE)-js.* $(PRESENTATION_BASE).tex
75
76 err: ; $(ERR)
77
78 install: all
79         /bin/rm -rf $(INSTALL_DIR)/ui
80         /usr/bin/rsync -HavP --delete ./  $(INSTALL_DIR)
81         /bin/rm -rf $(INSTALL_DIR)/ui
82         /usr/bin/rsync -HavP ../ui/ $(INSTALL_DIR)/ui/
83         ./pres-cmd