-
Notifications
You must be signed in to change notification settings - Fork 14
/
Makefile
106 lines (59 loc) · 2.62 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
PANDOC := /usr/local/bin/pandoc
MARKDOWN_USAGE_FILES = $(shell find . -name index.md)
HTML_USAGE_FILES = $(MARKDOWN_USAGE_FILES:.md=.html)
BASH_USAGE_FILES = $(MARKDOWN_USAGE_FILES:.md=.sh)
all: $(HTML_USAGE_FILES) $(BASH_USAGE_FILES)
%.sh: %.md
printf "[PANDOC] %-28s > %s\n" "$<" $@
${PANDOC} -f markdown -t _writers/script.lua \
--normalize -o "$@" "$<"
%.html: %.md
printf "[PANDOC] %-28s > %s\n" "$<" $@
${PANDOC} -f markdown -t html5 --mathjax --toc \
--base-header-level=2 --toc-depth=4 \
--template=./_templates/page.html -o "$@" "$<"
clean:
rm -f $(HTML_USAGE_FILES) $(BASH_USAGE_FILES)
advanced: advanced/index.html advanced/index.sh
anim_basics: anim_basics/index.html anim_basics/index.sh
anim_mods: anim_mods/index.html anim_mods/index.sh
anim_opt: anim_opt/index.html anim_opt/index.sh
annotating: annotating/index.html annotating/index.sh
antialiasing: antialiasing/index.html antialiasing/index.sh
backgrounds: backgrounds/index.html backgrounds/index.sh
basics: basics/index.html basics/index.sh
blur: blur/index.html blur/index.sh
canvas: canvas/index.html canvas/index.sh
color_basics: color_basics/index.html color_basics/index.sh
color_mods: color_mods/index.html color_mods/index.sh
compare: compare/index.html compare/index.sh
compose: compose/index.html compose/index.sh
compose/tables: compose/tables/index.html compose/tables/index.sh
convolve: convolve/index.html convolve/index.sh
crop: crop/index.html crop/index.sh
distorts: distorts/index.html distorts/index.sh
distorts/affine: distorts/affine/index.html distorts/affine/index.sh
draw: draw/index.html draw/index.sh
files: files/index.html files/index.sh
filter: filter/index.html filter/index.sh
filter/nicolas: filter/nicolas/index.html filter/nicolas/index.sh
fonts: fonts/index.html fonts/index.sh
formats: formats/index.html formats/index.sh
fourier: fourier/index.html fourier/index.sh
layers: layers/index.html layers/index.sh
lens: lens/index.html lens/index.sh
mapping: mapping/index.html mapping/index.sh
masking: masking/index.html masking/index.sh
misc: misc/index.html misc/index.sh
montage: montage/index.html montage/index.sh
morphology: morphology/index.html morphology/index.sh
photos: photos/index.html photos/index.sh
quantize: quantize/index.html quantize/index.sh
resize: resize/index.html resize/index.sh
text: text/index.html text/index.sh
thumbnails: thumbnails/index.html thumbnails/index.sh
transform: transform/index.html transform/index.sh
video: video/index.html video/index.sh
warping: warping/index.html warping/index.sh
windows: windows/index.html windows/index.sh
.SILENT: $(HTML_USAGE_FILES) $(BASH_USAGE_FILES)