-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
48 lines (36 loc) · 1.39 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
package_name=ibus-table-cuneiform_1.1.0_all
install: cuneiform.db
sudo cp cuneiform.db /usr/share/ibus-table/tables/
sudo cp cuneiform.svg /usr/share/ibus-table/icons/
ibus-daemon -xrd
cuneiform.db: ibus-table-cuneiform.txt
ibus-table-createdb -s ibus-table-cuneiform.txt -n cuneiform.db
#ibus-table-cuneiform.txt: ogsl-sl.xml xml2ibus_table.py
# ./xml2ibus_table.py
ibus-table-cuneiform.txt: ogsl.asl asl2ibus_table.py
./asl2ibus_table.py
asl2ibus_table.py: asl2ibus_table.ipynb
jupyter nbconvert --to script asl2ibus_table.ipynb
chmod +x asl2ibus_table.py
xml2ibus_table.py: xml2ibus_table.ipynb
jupyter nbconvert --to script xml2ibus_table.ipynb
chmod +x xml2ibus_table.py
ogsl.asl:
wget https://raw.githubusercontent.com/oracc/ogsl/master/00lib/ogsl.asl
ogsl-sl.xml:
wget https://github.com/oracc/coredata/blob/master/sign/ogsl-sl.xml?raw=true -O ogsl-sl.xml
clean:
-rm ibus-table-cuneiform.txt
-rm cuneiform.db
-rm xml2ibus_table.py
-rm -r $(package_name)
pretty: ogsl-sl.xml
xmllint --format ogsl-sl.xml > ogsl-sl_prettified.xml
deb: cuneiform.db
mkdir -p $(package_name)/usr/share/ibus-table/tables/
mkdir -p $(package_name)/usr/share/ibus-table/icons/
mkdir -p $(package_name)/DEBIAN/
cp cuneiform.db $(package_name)/usr/share/ibus-table/tables/
cp cuneiform.svg $(package_name)/usr/share/ibus-table/icons/
cp deb/control $(package_name)/DEBIAN/
dpkg-deb --build $(package_name)