From 0a7a4c5b38489621bf99415cdfba0e2538da3a49 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 16 Sep 2024 19:26:54 +0200 Subject: Merging upstream version 20240916 (Closes: #1079257). Signed-off-by: Daniel Baumann --- extensions/47/middleclickclose/Makefile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 extensions/47/middleclickclose/Makefile (limited to 'extensions/47/middleclickclose/Makefile') diff --git a/extensions/47/middleclickclose/Makefile b/extensions/47/middleclickclose/Makefile new file mode 100644 index 0000000..8960c95 --- /dev/null +++ b/extensions/47/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 -- cgit v1.2.3