-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
48 lines (37 loc) · 1004 Bytes
/
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
.PHONY: all
all: build
.PHONY: build
build:
python3 -m compileall fontlink
for l in `grep -v '^#' po/LINGUAS`; \
do \
modir=mo/$$l/LC_MESSAGES; \
mkdir -p $$modir; \
msgfmt po/$$l.po --output-file $$modir/fontlink.mo; \
done
.PHONY: clean
clean:
find fontlink -type d -name '__pycache__' -exec rm -rf {} +
rm -rf mo
.PHONY: install
install:
install bin/fontlink /usr/bin
cp -r fontlink /usr/share
cp -r mo/* /usr/share/locale
cp -r data/icons/hicolor /usr/share/icons
gtk-update-icon-cache -q -t /usr/share/icons/hicolor
cp data/fontlink.desktop /usr/share/applications
.PHONY: uninstall
uninstall:
rm -f /usr/bin/fontlink
rm -rf /usr/share/fontlink
for l in `grep -v '^#' po/LINGUAS`; \
do \
rm -f /usr/share/locale/$$l/LC_MESSAGES/fontlink.mo; \
done
for i in data/icons/hicolor/*; \
do \
rm -f /usr/share/icons/hicolor/`basename $$i`/apps/fontlink.*; \
done
gtk-update-icon-cache -q -t /usr/share/icons/hicolor
rm -f /usr/share/applications/fontlink.desktop