forked from zakkak/workspace-grid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
27 lines (22 loc) · 786 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
#=============================================================================
FILES=metadata.json *.js stylesheet.css schemas *.svg *.png
#=============================================================================
default_target: all
.PHONY: clean all zip install dev-zip
clean:
rm -f $(UUID).zip src/schemas/gschemas.compiled
# compile the schemas
schemas:
@if [ -d src/schemas ]; then \
glib-compile-schemas src/schemas; \
fi
zip: schemas
zip -rq $(UUID).zip $(FILES:%=src/%)
dev-zip: schemas
(cd src; \
zip -rq ../$(UUID).zip $(FILES))
install: schemas
mkdir -p ~/.local/share/gnome-shell/extensions/$(UUID)
yes | \cp -r src/* ~/.local/share/gnome-shell/extensions/$(UUID)/
gnome-shell-extension-tool -r $(UUID)