-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
69 lines (56 loc) · 1.96 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
run ::
gulp run
dev ::
gulp dev
build ::
gulp build
deps ::
npm i
gulp build
js/deps.js ::
gulp webpack:build
cp js/deps.js docs/js
cp styles.css docs/
manifest :: js/deps.js
ruby -e 'filepath=ARGV[0];IO.write(filepath, File.open(filepath) {|f| f.read.gsub(/# 20.*\n/, "# #{Time.now.to_s}\n")})' -i manifest.appcache
ruby -e 'filepath=ARGV[0];IO.write(filepath, File.open(filepath) {|f| f.read.gsub(/# 20.*\n/, "# #{Time.now.to_s}\n")})' -i docs/manifest.appcache
amis-static:
cp -r styles.css icon.png 2017-Amis-Logo.png *.html js css images fonts p m s dict-amis*.json docs/
cp ../amis-safolu/txt/amis-ch-mapping.json docs/s/ch-mapping.json
cp ../amis-safolu/tmp/amis-stem-words.json docs/s/stem-words.json
amis:
cp -r docs/images docs/fonts docs/p docs/m docs/s .
amis-build :: amis-fey amis-poinsot amis-safolu
amis-fey ::
if test ! -d "moedict-data-amis"; then \
git clone --depth 1 https://github.com/miaoski/amis-data.git moedict-data-amis; \
fi
cd moedict-data-amis && make moedict
# ln -sf moedict-data-amis/dict-amis.json dict-amis.json
node json2prefix.js p
node autolink.js p > p.txt
perl link2pack.pl p < p.txt
cp moedict-data-amis/index.json p/index.json
cd moedict-data-amis && python cmn-amis-longstr.py
cp moedict-data-amis/revdict-amis*.txt p/
amis-poinsot ::
if test ! -d "moedict-data-amis-mp"; then \
git clone --depth 1 https://github.com/miaoski/amis-francais.git moedict-data-amis-mp; \
fi
cd moedict-data-amis-mp && python moedict.py
ln -sf moedict-data-amis-mp/dict-amis-mp.json dict-amis-mp.json
node json2prefix.js m
node autolink.js m > m.txt
perl link2pack.pl m < m.txt
cp moedict-data-amis-mp/index.json m/index.json
touch m/revdict-amis-def.txt
touch m/revdict-amis-ex.txt
amis-safolu ::
if test ! -d "../amis-safolu"; then \
git clone --depth 1 https://github.com/miaoski/amis-safolu.git ../amis-safolu; \
fi
ln -sf ../amis-safolu/s
clean ::
git clean -xdf
emulate ::
make -C cordova emulate