-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
19 lines (14 loc) · 912 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
.PHONY: gettext dist help schemas update-ff-translations
.DEFAULT_GOAL=help
uuid:=$(shell jq -r .uuid metadata.json)
help: ## Show this help
@awk 'BEGIN {FS = ":.*?## "} /^[\/a-zA-Z_-]+:.*?## / {sub("\\\\n",sprintf("\n%22c"," "), $$2);printf "\033[36m%-25s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
gettext: ## Generate .mo translation files
find locale -name *.po | xargs basename -s .po | xargs -I{} mkdir -p locale/{}/LC_MESSAGES || /bin/true
find locale -name *.po | xargs basename -s .po | xargs -I{} msgfmt -D locale -o locale/{}/LC_MESSAGES/$(uuid).mo {}.po
dist: schemas gettext ## Prepare zip file for extensions.gnome.org
gnome-extensions pack --force --podir=locale --extra-source src --extra-source LICENSE .
schemas: ## Compile glib schemas
glib-compile-schemas ./schemas/
update-ff-translations: ## Updates PIP window title translations from Firefox
./scripts/update-ff-translations.sh