-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
31 lines (25 loc) · 782 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
INSTALLBASE = $(HOME)/.local/share/gnome-shell/extensions
INSTALLNAME = kube_config@vvbogdanov87.gmail.com
NAME = kube_config
BASE_MODULES = extension.js metadata.json LICENSE README.md
EXTRA_MODULES = kubeIndicator.js kubePopupMenuItem.js prefs.js kubectl.js commandLineUtil.js utils.js
clean:
rm -rf _build
rm -f ./schemas/gschemas.compiled
install: build
rm -rf $(INSTALLBASE)/$(INSTALLNAME)
mkdir -p $(INSTALLBASE)/$(INSTALLNAME)
cp -r ./_build/* $(INSTALLBASE)/$(INSTALLNAME)/
compile-schemas:
glib-compile-schemas ./schemas/
build: compile-schemas
rm -rf ./_build
mkdir _build
cp $(BASE_MODULES) $(EXTRA_MODULES) _build
cp -r schemas _build
cp -r icons _build
cp -r lib _build
package: build
cd _build ; \
zip -qr "$(NAME).zip" .
mv _build/$(NAME).zip ./