-
Notifications
You must be signed in to change notification settings - Fork 0
/
GNUmakefile
54 lines (41 loc) · 1.42 KB
/
GNUmakefile
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
PDF_TEXT = ShuishuLogogramNameList.txt ShuishuRadicalNameList.txt
DERIVED_JSON = ShuishuLogogramNameList.json SDYZSound.json
all:
make -C srcPDF
make -C png-n4922
make -C gif-oe-n4922
make $(DERIVED_JSON)
ShuishuLogogramNameList.json: $(PDF_TEXT)
./tokenizeUcsCharName.rb --charname-list=$< --sounds=sounds_wg2n4758.txt > $@
SDYZSound.json:
./makeSoundTableJson.rb sounds_.txt < sounds_SDYZ2007.txt > $@
ShuishuLogogramNameList.txt: srcPDF/17366r-n4922-5th-ed-pdam2-2-chart.pdf
pdftotext -raw -f 87 -l 92 srcPDF/17366r-n4922-5th-ed-pdam2-2-chart.pdf ${@:.txt=.dat}
./makeCharNameList.rb < ${@:.txt=.dat} > $@
ShuishuRadicalNameList.txt: srcPDF/17366r-n4922-5th-ed-pdam2-2-chart.pdf
pdftotext -raw -f 93 -l 93 srcPDF/17366r-n4922-5th-ed-pdam2-2-chart.pdf ${@:.txt=.dat}
./makeCharNameList.rb < ${@:.txt=.dat} > $@
clean:
rm -f $(PDF_TEXT) $(DERIVED_JSON)
DIST_SOURCES = \
lookup_U+1B300.html \
1x1.gif \
*.md \
*.css \
*/*.css \
*.js \
*.json \
*/*.json
DIST_SOURCES_EXTRA = \
gif-sdyz-ipa/*.gif \
gif-oe-n4922/U+*.gif
DIST_SOURCES_EXTRA_EXTRA = \
gif-oe-n4922/n4922*.gif
dist:
tar cvpf - $(DIST_SOURCES) | xz -9v > lookup_U+1B300.tar.xz
dist-images:
tar cvpf - $(DIST_SOURCES) $(DIST_SOURCES_EXTRA) | xz -9v > lookup_U+1B300.tar.xz
dist-whole:
tar cvpf - $(DIST_SOURCES) $(DIST_SOURCES_EXTRA) $(DIST_SOURCES_EXTRA_EXTRA) | xz -9v > lookup_U+1B300.tar.xz
dist-zip:
zip -vr lookup_U+1B300.zip $(DIST_SOURCES)