forked from alexeylovchikov/eye-extended-shell-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
58 lines (48 loc) · 1.77 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
54
55
56
57
58
# SPDX-License-Identifier: GPL-3.0-or-later
# SPDX-FileCopyrightText: djinnalexio
COPYRIGHT_HOLDER = djinnalexio
EXTENSION_GETTEXT_DOMAIN = eye-on-cursor
EXTENSION_UUID = eye-on-cursor@djinnalexio.github.io
ISSUES_URL = https://github.com/djinnalexio/eye-on-cursor/issues
PACK_NAME = $(EXTENSION_UUID).shell-extension.zip
VERSION = 1.3.1
.phony: pack install uninstall prefs test test-prefs-settings test-prefs-window update-pot
pack:
gnome-extensions pack $(EXTENSION_UUID) \
--extra-source="lib" \
--extra-source="media" \
--extra-source="settings" \
--podir="../po" \
--force
# Extension has been packed into ./$(PACK_NAME).
install: pack
gnome-extensions install --force $(PACK_NAME)
# Extension has been installed.
# Log out and in to use it, or start testing immediately.
uninstall:
dconf reset -f /org/gnome/shell/extensions/$(EXTENSION_GETTEXT_DOMAIN)
gnome-extensions uninstall $(EXTENSION_UUID)
# Extension has been uninstalled and settings purged.
prefs:
gnome-extensions prefs $(EXTENSION_UUID)
# Opened Preferences.
test: install
# Running a nested GNOME Shell:
env MUTTER_DEBUG_DUMMY_MODE_SPECS=960x540 \
SHELL_DEBUG=backtrace-warnings \
G_MESSAGES_DEBUG='GNOME Shell' \
dbus-run-session -- gnome-shell --nested --wayland
test-prefs-settings: install prefs
# Monitoring settings values:
dconf watch /org/gnome/shell/extensions/$(EXTENSION_GETTEXT_DOMAIN)/
test-prefs-window: install prefs
# Monitoring Preferences window:
journalctl -f -o cat /usr/bin/gjs
update-pot:
find $(EXTENSION_UUID)/ -iname "*.js" | xargs xgettext \
--output=po/$(EXTENSION_GETTEXT_DOMAIN).pot \
--from-code=UTF-8 \
--package-name=$(EXTENSION_GETTEXT_DOMAIN) \
--package-version=$(VERSION) \
--copyright-holder=$(COPYRIGHT_HOLDER) \
--msgid-bugs-address=$(ISSUES_URL)