-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (34 loc) · 926 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
40
41
42
43
44
NAME := $(shell jq '.name' ./src/metadata.json)
UUID := $(shell jq '.uuid' ./src/metadata.json)
VERSION := $(shell jq '.version' ./src/metadata.json)
ZIPFILE = archives/$(NAME)-v${VERSION}.zip
EXTENSION_PATH = $(HOME)/.local/share/gnome-shell/extensions/$(UUID)
$(ZIPFILE): src/metadata.json schemas
-rm -f $(ZIPFILE)
cd src/ && zip ../$(ZIPFILE) * schemas/* ui/*
.PHONY: package
package: $(ZIPFILE)
.PHONY: schemas
schemas:
glib-compile-schemas src/schemas/
.PHONY: uninstall
uninstall:
rm -rf $(EXTENSION_PATH)
.PHONY: install
install: package
rm -rf $(EXTENSION_PATH)
mkdir -p $(EXTENSION_PATH)
unzip $(ZIPFILE) -d $(EXTENSION_PATH)
.PHONY: link
link:
rm -rf $(EXTENSION_PATH)
ln -s ${PWD}/src $(EXTENSION_PATH)
.PHONY: prefs
prefs:
gnome-extensions prefs $(UUID)
.PHONY: logs
logs:
journalctl /usr/bin/gnome-shell -f
.PHONY: view-data
view-data:
dconf-editor /org/gnome/shell/extensions/cryptowatch/