blob: 68a103b68fc93d11c3163c1b71788a5a28603301 (
plain)
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
|
.PHONY: clean all
M4FLAGS += -I./assets/
JSMIN := uglifyjs
CSSMIN := uglifycss
all: yomichan-user.js yomichan-user.css
user.js: conf.d/lib.js
user.js: lib/handwriting.js/handwriting.canvas.js
user.js: conf.d/sentence-export.js
user.css: conf.d/sentence-export.css
user.css: conf.d/custom.css
user.js: conf.d/word-export.js
user.css: conf.d/word-export.css
user.js: conf.d/shortcuts.js
user.js: conf.d/handwriting.js
user.css: conf.d/handwriting.css
include ../common.mk
assets/copy.svg.b64: assets/copy.svg
assets/copy-bitmap.svg.b64: assets/copy-bitmap.svg
assets/draw.svg.b64: assets/draw.svg
GARBAGE += assets/copy.svg.b64
GARBAGE += assets/copy-bitmap.svg.b64
GARBAGE += assets/draw.svg.b64
# extra dependencies
conf.d/sentence-export.css: assets/copy.svg.b64
conf.d/sentence-export.css: conf.d/sentence-export.css.m4
conf.d/word-export.css: assets/copy-bitmap.svg.b64
conf.d/handwriting.css: assets/draw.svg.b64
user.js:
cat $^ > $@
user.css:
cat $^ > $@
header.txt: header.txt.m4
header.txt: ../.git/HEAD
yomichan-user.js: header.txt user.min.js
cat $^ > $@
yomichan-user.css: header.txt user.min.css
cat $^ > $@
clean:
$(RM) user.js user.css user.min.js user.min.css header.txt yomichan-user.css yomichan-user.js
$(RM) $(GARBAGE)
|