summaryrefslogtreecommitdiffstats
path: root/extensions/46/middleclickclose/Makefile
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 06:16:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 06:19:57 +0000
commitc12d383974530ff928699dd98b424824bf21962d (patch)
treeb3304eeafe0342bfe58827e9507443c5dde167e0 /extensions/46/middleclickclose/Makefile
parentReleasing debian version 20231210-2. (diff)
downloadgnome-shell-extensions-extra-c12d383974530ff928699dd98b424824bf21962d.tar.xz
gnome-shell-extensions-extra-c12d383974530ff928699dd98b424824bf21962d.zip
Merging upstream version 20240414 (Closes: #1067433).
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'extensions/46/middleclickclose/Makefile')
-rw-r--r--extensions/46/middleclickclose/Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/extensions/46/middleclickclose/Makefile b/extensions/46/middleclickclose/Makefile
new file mode 100644
index 0000000..8960c95
--- /dev/null
+++ b/extensions/46/middleclickclose/Makefile
@@ -0,0 +1,27 @@
+.PHONY: clean all install po pot pack
+
+POT_SOURCE_FILES = $(wildcard src/schemas/*.gschema.xml src/*.js)
+EXTRA_SOURCE_FILES = settingsWatch.js
+
+all: pack
+
+pack:
+ gnome-extensions pack --force src/ $(addprefix --extra-source=, $(EXTRA_SOURCE_FILES))
+
+install: pack
+ gnome-extensions install --force middleclickclose@paolo.tranquilli.gmail.com.shell-extension.zip
+
+po: $(wildcard src/po/*.po)
+pot: src/po/template.pot
+
+clean:
+ rm -f middleclickclose@paolo.tranquilli.gmail.com.shell-extension.zip
+ rm -f src/po/template.pot
+
+# ---
+
+src/po/template.pot: $(POT_SOURCE_FILES)
+ xgettext -F --from-code=UTF-8 --output=src/po/template.pot $(POT_SOURCE_FILES)
+
+src/po/%.po: pot
+ msgmerge --quiet --backup off --update $@ src/po/template.pot