-
Notifications
You must be signed in to change notification settings - Fork 169
/
Makefile
29 lines (22 loc) · 969 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
MODULES = *.js locale/*/LC_MESSAGES/*.mo metadata.json stylesheet.css LICENSE.rst README.rst schemas/
INSTALLPATH=~/.local/share/gnome-shell/extensions/[email protected]/
all: compile-locales compile-settings
compile-settings:
glib-compile-schemas --strict --targetdir=schemas/ schemas
compile-locales:
$(foreach file, $(wildcard locale/*/LC_MESSAGES/*.po), \
msgfmt $(file) -o $(subst .po,.mo,$(file));)
update-po-files:
xgettext -L Python --from-code=UTF-8 -k_ -kN_ -o clipboard-indicator.pot *.js
$(foreach file, $(wildcard locale/*/LC_MESSAGES/*.po), \
msgmerge $(file) clipboard-indicator.pot -o $(file);)
install: all
rm -rf $(INSTALLPATH)
mkdir -p $(INSTALLPATH)
cp -r $(MODULES) $(INSTALLPATH)/
nested-session:
dbus-run-session -- env MUTTER_DEBUG_NUM_DUMMY_MONITORS=1 \
MUTTER_DEBUG_DUMMY_MODE_SPECS=2048x1536 \
MUTTER_DEBUG_DUMMY_MONITOR_SCALES=2 gnome-shell --nested --wayland
bundle: all
zip -FSr bundle.zip $(MODULES)