-
Notifications
You must be signed in to change notification settings - Fork 23
/
Makefile
37 lines (31 loc) · 847 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
BUILD=build
BUILD_LOC=$(BUILD)/$(UUID)
ZIP=$(UUID).zip
# if we are running as root, install system-wide.
ifeq ($(shell whoami),root)
INSTALL_LOC=/usr/share/gnome-shell/extensions
else
INSTALL_LOC=$(HOME)/.local/share/gnome-shell/extensions
endif
.PHONY: build
build:
rm -rf $(BUILD_LOC)
mkdir -p $(BUILD_LOC)
python make_locale.py
cp -r src/extension.js src/metadata.json src/schemas locale $(BUILD_LOC)
cd $(BUILD_LOC); zip -r $(ZIP) *
mv $(BUILD_LOC)/$(ZIP) $(ZIP)
install:
rm -rf $(INSTALL_LOC)/$(UUID)
cp -r $(BUILD_LOC) $(INSTALL_LOC)/.
glib-compile-schemas $(INSTALL_LOC)/$(UUID)/schemas
uninstall:
rm -r $(INSTALL_LOC)/$(UUID)
clean:
rm -rf po
rm -rf locale
rm -rf $(BUILD)
debug:
gnome-extensions enable [email protected]
dbus-run-session -- gnome-shell --nested --wayland