-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
39 lines (28 loc) · 882 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
UUID = zen@le0.gs
PACKFILE = $(UUID).shell-extension.zip
other = metadata.json
js = extension.js prefs.js src/*
schemas = schemas/*
pot = po/$(UUID).pot po/*
$(PACKFILE): $(other) $(js) $(schemas) $(pot)
gnome-extensions pack . --extra-source=src --force
po/$(UUID).pot: $(js) $(schemas)
xgettext --from-code=UTF-8 --output=$@ $^
.PHONY: develop install uninstall enable disable listen restart-shell
develop: install restart-shell
install: $(PACKFILE)
gnome-extensions install $(PACKFILE) --force
uninstall:
gnome-extensions uninstall $(UUID)
enable:
gnome-extensions enable $(UUID)
disable:
gnome-extensions disable $(UUID)
restart-shell:
if systemctl --user is-active org.gnome.Shell@x11.service --quiet; then \
pkill -HUP gnome-shell; \
else \
gnome-session-quit --logout; \
fi
listen:
journalctl -o cat -n 0 -f "$$(which gnome-shell)" | grep -v warning