]> Dogcows Code - chaz/talk-introduction-to-psgi/blob - Makefile
fix up for presentation
[chaz/talk-introduction-to-psgi] / Makefile
1
2 SLIDES = introduction-to-psgi
3 BROWSER = chrome
4 DOT = dot
5 PLACKUP = plackup
6
7 dotfiles = $(shell find . -iname '*.dot')
8 svgfiles = $(patsubst %.dot,%.svg,$(dotfiles))
9
10 all: offline
11
12 clean:
13 rm -f slides-offline.html remark.min.js $(SLIDES).pdf $(svgfiles)
14
15 offline: slides-offline.html remark.min.js $(svgfiles)
16
17 pdf: $(SLIDES).pdf
18
19 run: $(svgfiles)
20 $(BROWSER) slides.html
21
22 run-app: offline
23 $(PLACKUP)
24
25 run-offline: offline
26 $(BROWSER) slides-offline.html
27
28 %.svg: %.dot
29 $(DOT) -Tsvg -o$@ $<
30
31 $(SLIDES).pdf: slides.html $(wildcard css/*) $(wildcard img/*) $(svgfiles)
32 docker run --rm -v `pwd`:/pwd astefanutti/decktape /pwd/slides.html /pwd/$(SLIDES).pdf
33
34 slides-offline.html: slides.html
35 sed -e '1 a <!-- This file is auto-generated - DO NOT EDIT!!! -->' \
36 -e 's!https://.*remark-latest\.min\.js!remark.min.js!' <$< >$@
37
38 remark.min.js:
39 curl -Lo $@ https://gnab.github.io/remark/downloads/remark-latest.min.js
40
41 .PHONY: all clean offline pdf run run-app run-offline
42
This page took 0.029726 seconds and 4 git commands to generate.