forked from twitter/effectivescala
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (29 loc) · 1.01 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
#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-cn.html index-ko.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-cn.html: header-cn.html.inc effectivescala-cn.html footer-cn.html.inc
cat $^ > $@
index-ko.html: header.html.inc effectivescala-ko.html footer-ko.html.inc
cat $^ > $@
pub: all
./publish.sh index.html index-ja.html index-ru.html index-cn.html index-ko.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