-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (24 loc) · 1.06 KB
/
Makefile
File metadata and controls
34 lines (24 loc) · 1.06 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
NAME = touchpad@gpawru
SCHEMA_NAME = touchpad_gpawru
EXTENSION_DIR = $(HOME)/.local/share/gnome-shell/extensions/$(NAME)
PACK_NAME = $(NAME).shell-extension.zip
.PHONY: run all pack install clean
all: .build/extension.js
node_modules: package.json
pnpm install
.build/extension.js .build/prefs.js: node_modules
tsc
schemas/gschemas.compiled: schemas/org.gnome.shell.extensions.$(SCHEMA_NAME).gschema.xml
glib-compile-schemas schemas
.release/$(PACK_NAME): .build/extension.js .build/prefs.js schemas/gschemas.compiled
@rm -rf .release && mkdir .release
@cp -r schemas .build/
@cp metadata.json .build/
@gnome-extensions pack .build --out-dir=.release --podir=./../po --force --extra-source=icon.js --extra-source=toggle.js --extra-source=types.js --extra-source=./../LICENSE --extra-source=./../README.md
run:
env MUTTER_DEBUG_DUMMY_MODE_SPECS=1600x1080 dbus-run-session -- gnome-shell --nested --wayland
pack: .release/$(PACK_NAME)
install: .release/$(PACK_NAME)
@gnome-extensions install .release/$(PACK_NAME) --force
clean:
@rm -rf .build node_modules .release