-
Notifications
You must be signed in to change notification settings - Fork 98
/
Copy pathMakefile
30 lines (23 loc) · 815 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
INSTALL_PATH = ~/.local/share/gnome-shell/extensions
INSTALL_NAME = [email protected]
all: build
install: build
rm -rf $(INSTALL_PATH)/$(INSTALL_NAME)
mkdir -p $(INSTALL_PATH)/$(INSTALL_NAME)
cp -R -p _build/* $(INSTALL_PATH)/$(INSTALL_NAME)
rm -rf _build
echo Installed in $(INSTALL_PATH)/$(INSTALL_NAME)
build: compile-schema
rm -rf _build
mkdir _build
cp -R -p locale schemas convenience.js extension.js metadata.json prefs.js README.md _build
echo Build was successful
compile-schema: ./schemas/org.gnome.shell.extensions.topicons.gschema.xml
glib-compile-schemas schemas
delivery: delivery
rm -f TopIcons.zip
zip --include '*.js' 'metadata.json' 'locale/*' 'schemas/*' --exclude '*_build*' '*.po' -r TopIcons.zip .
clean:
rm -rf _build
uninstall:
rm -rf $(INSTALL_PATH)/$(INSTALL_NAME)