-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (39 loc) · 1.03 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
49
50
51
52
53
UUID = "[email protected]"
INSTALL_PATH = $(HOME)/.local/share/gnome-shell/extensions/$(UUID)
.PHONY: all clean install schemas uninstall enable disable
all: build
schemas: schemas/gschemas.compiled
touch $@
schemas/gschemas.compiled: schemas/*.gschema.xml
glib-compile-schemas schemas
build: clean metadata.json schemas
rm -rf temp
mkdir -p temp
cp metadata.json temp
cp -r icons temp
cp -r schemas temp
cp *.js temp
cp *.css temp
clean:
rm -rf temp schemas/gschemas.compiled
enable:
gnome-extensions enable $(UUID)
disable:
gnome-extensions disable $(UUID)
install:
mkdir -p $(INSTALL_PATH)
cp -r temp/* $(INSTALL_PATH)
uninstall:
rm -rf $(INSTALL_PATH)
make restart
dist: all
cd temp && \
zip -qr "../${UUID}.zip" .
restart:
if bash -c 'xprop -root &> /dev/null'; then \
busctl --user call org.gnome.Shell /org/gnome/Shell org.gnome.Shell Eval s 'Meta.restart("Restarting Gnome...")'; \
else \
gnome-session-quit --logout; \
fi
log:
journalctl -o cat -n 0 -f "$$(which gnome-shell)" | grep -v warning