-
Notifications
You must be signed in to change notification settings - Fork 14
/
Makefile
35 lines (27 loc) · 1.32 KB
/
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
UUID = [email protected]
VERSION = 36
ifeq ($(strip $(DESTDIR)),)
INSTALLBASE = $(HOME)/.local/share/gnome-shell/extensions
else
INSTALLBASE = $(DESTDIR)/usr/share/gnome-shell/extensions
endif
all: compile-resources compile-schemas
compile-resources:
glib-compile-resources \
--target=./$(UUID)/resources/org.gnome.Shell.Extensions.DeskChanger.gresource \
--sourcedir=./resources \
./resources/org.gnome.Shell.Extensions.DeskChanger.gresource.xml
compile-schemas:
glib-compile-schemas ./$(UUID)/schemas/
install: update-translation
mkdir -p $(INSTALLBASE)
cp -R $(UUID)/ $(INSTALLBASE)/
echo done
pot:
xgettext --package-name=DeskChanger --package-version=$(VERSION) -k --keyword=_ -o ./po/desk-changer.pot -D ./ $(UUID)/_deskchanger.js $(UUID)/convenience.js $(UUID)/extension.js $(UUID)/prefs.js $(UUID)/service.js $(UUID)/common/utils.js $(UUID)/daemon/interface.js $(UUID)/daemon/profile.js $(UUID)/daemon/server.js $(UUID)/daemon/timer.js $(UUID)/ui/control.js $(UUID)/ui/panelMenu.js $(UUID)/ui/popupMenu.js resources/ui/prefs.ui resources/ui/rotation.ui
update-translation: all
cd po; \
./compile.sh ../[email protected]/locale;
zipfile: all
cd ./$(UUID)/; \
zip -r ../$(UUID)-$(VERSION).zip . -x 'resources/ui/*' -x 'resources/icons/*' -x 'resources/*.xml' -x 'resources/*.in' -x '*.gitkeep'