-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
42 lines (33 loc) · 1.71 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
TT_PO = `find ./[email protected]/locale -name *.po`
DOMAIN = time-tracker
.DEFAULT_GOAL := all
.PHONY: update_po
update_po: [email protected]/time-tracker.pot
for item in $(TT_PO); do \
echo "Processing" $$item; \
xgettext --from-code=UTF-8 --output=$$item.tmp ./[email protected]/*.js; \
msgmerge -U $$item $$item.tmp; \
rm -f $$item.tmp; \
msgfmt -c $$item -o `dirname $$item`/${DOMAIN}.mo; \
done;
[email protected]/time-tracker.pot: [email protected]/*.js
xgettext --from-code=UTF-8 [email protected] ./[email protected]/*.js
msgmerge -U $@ [email protected]
rm -f [email protected]
[email protected]/schemas/gschemas.compiled: [email protected]/schemas/org.gnome.shell.extensions.time-tracker.gschema.xml
glib-compile-schemas [email protected]/schemas/
rm -rf build/
cp -R [email protected] build
find ./build -type f -name *.po -delete
find ./build -type f -name *.po~ -delete
find ./build -type f -name "*.pot" -delete
find ./build -type f -name "*.pot~" -delete
cd build && zip -qr [email protected] . && mv [email protected] ../
rm -rf build
build: update_po [email protected]/schemas/gschemas.compiled
all: build [email protected]
install: [email protected]
gnome-extensions install ./[email protected] --force
launch:
dbus-run-session -- gnome-shell --nested --wayland