-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
56 lines (41 loc) · 1.48 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
TEMPLATES=snaplets/heist/templates
PANDOC=$(wildcard *.pandoc)
#PANDOCSRC=$(patsubst %.pandoc,%,$(PANDOC))
TPL=$(patsubst %.pandoc,$(TEMPLATES)/%.tpl,$(PANDOC))
STATIC=static/slides.html static/600px-Green500_evolution.png static/cpu-vs-gpu-thumbnail.png static/GeForce_GTX_980_Block_Diagram_FINAL_575px.png
SERVER=dist/build/lambdacube3dcom/lambdacube3dcom
.PHONEY: all
all: $(TPL) static/slides.html $(SERVER)
$(SERVER): lambdacube3dcom.cabal $(wildcard src/*.hs)
cabal install
.PHONEY: tpl
tpl: $(TPL) static/slides.html
$(TPL): $(TEMPLATES)/%.tpl: %.pandoc template.tpl
pandoc --template=template.tpl -S -t html $< -o $@
#$(TEMPLATES)/destinations.tpl: destinations.pandoc
# pandoc -S -t html $< -o $@
#$(TEMPLATES)/questions.tpl: questions.pandoc template.tpl
# pandoc --toc --template=template.tpl -S -t html $< -o $@
#$(TEMPLATES)/haskell.tpl: haskell.pandoc template.tpl
# pandoc --toc --template=template.tpl -S -t html $< -o $@
static/slides.html: slides.pandoc
pandoc -s -S -t slidy --slide-level=2 $< -o $@
%.html: %.pandoc
pandoc --toc -s -S -t html $< -o $@
%.svg: %.dia
dia -e $@ $<
.PHONEY: clean
clean:
rm -f $(TPL)
.PHONEY: localrun
localrun:
./$(SERVER)
.PHONEY: upload
upload:
chmod g+w $(wildcard $(TEMPLATES)/*.tpl)
scp $(wildcard $(TEMPLATES)/*.tpl) lambdacube3d.com:/home/www/hello/snaplets/heist/templates
# scp $(STATIC) lambdacube3d.com:/home/www/hello/static
.PHONEY: uploadstatic
uploadstatic:
chmod -R g+w static
scp -r static lambdacube3d.com:/home/www/hello/