-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (32 loc) · 1 KB
/
Makefile
File metadata and controls
43 lines (32 loc) · 1 KB
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
UUID := nexstage@nexvar
PREFIX := $(HOME)/.local/share/gnome-shell/extensions
DEST := $(PREFIX)/$(UUID)
FILES := metadata.json extension.js prefs.js schemas
.PHONY: all compile-schemas install uninstall pack reload enable disable logs clean
all: compile-schemas
compile-schemas:
glib-compile-schemas schemas/
install: compile-schemas
mkdir -p "$(DEST)"
cp -r $(FILES) "$(DEST)/"
uninstall:
rm -rf "$(DEST)"
pack:
rm -f $(UUID).shell-extension.zip schemas/gschemas.compiled
gnome-extensions pack \
--extra-source=README.md \
--extra-source=LICENSE \
--schema=schemas/org.gnome.shell.extensions.nexstage.gschema.xml \
--force
@echo "Built $(UUID).shell-extension.zip"
enable:
gnome-extensions enable $(UUID)
disable:
gnome-extensions disable $(UUID)
reload: install
@echo "Log out / log in (Wayland) or press Alt+F2 → r (X11) to reload GNOME Shell."
logs:
journalctl -f -o cat /usr/bin/gnome-shell
clean:
rm -f schemas/gschemas.compiled
rm -f $(UUID).shell-extension.zip