forked from SUPERCILEX/gnome-clipboard-history
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
26 lines (19 loc) · 833 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
MODULES = metadata.json extension.js store.js dataStructures.js confirmDialog.js prefs.js stylesheet.css LICENSE README.md locale/*/*/*.mo 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-pot:
xgettext -L Python --from-code=UTF-8 -k_ -kN_ -o clipboard-history.pot *.js
update-po-files:
$(foreach file, $(wildcard locale/*/LC_MESSAGES/*.po), \
msgmerge $(file) clipboard-history.pot -o $(file);)
install: all
rm -rf $(INSTALLPATH)
mkdir -p $(INSTALLPATH)
cp -r $(MODULES) $(INSTALLPATH)
bundle: all
zip -r bundle.zip $(MODULES)