forked from twitter/effectivescala
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
41 lines (27 loc) · 910 Bytes
/
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
#MARKDOWN = $(HOME)/Library/Haskell/bin/pandoc -f markdown -t html
MARKDOWN = peg-markdown --smart --notes
all: index.html index-ja.html index-ru.html
index.html: header.html.inc effectivescala.html footer.html.inc
cat $^ > $@
index-ja.html: header-jp.html.inc effectivescala-ja.html footer-jp.html.inc
cat $^ > $@
index-ru.html: header-ru.html.inc effectivescala-ru.html footer-ru.html.inc
cat $^ > $@
index-fr.html: header-fr.html.inc effectivescala-fr.html footer-fr.html.inc
cat $^ > $@
pub: all
./publish.sh index.html index-ja.html index-ru.html index-fr.html coll.png
%.html: %.mo
cat $< | bash proc.sh | bash toc.sh | bash fmt.sh | $(MARKDOWN) > $@
%.ps: %.pic
9 pic $< | 9 troff | 9 tr2post | 9 psfonts > $@
%.eps: %.ps
rm -f $@
ps2eps -f $< $@
%.png: %.eps
convert -density 150 $< $@
%.proof: %.pic
9 pic $< | 9 troff | 9 proof
clean:
rm *.html *.png
.PHONY: all clean pub