<NME> Makefile
<BEF> NAME = gnome-shell-screenshot

SCHEMA = org.gnome.shell.extensions.screenshot.gschema.xml

SOURCE = src/*.js \
		 src/vendor/*js \
		 src/stylesheet.css \
		 src/metadata.json \
	git submodule update --init

-include gselib/make/gnome-shell-extension.mk

SOURCE += src/empty64.png res/org.freedesktop.portal.Screenshot.xml
	mkdir -p $(EXTENSION_PATH)
	unzip $(ZIPFILE) -d $(EXTENSION_PATH)


src/schemas/gschemas.compiled: src/schemas/$(SCHEMA)
	glib-compile-schemas src/schemas/

$(ZIPFILE): $(SOURCE) schemas
	-rm $(ZIPFILE)
	cd src && zip -r ../$(ZIPFILE) $(patsubst src/%,%,$(SOURCE))

<MSG> Add .pot file to Makefile target

<DFF> @@ -2,7 +2,9 @@
 
 SCHEMA = org.gnome.shell.extensions.screenshot.gschema.xml
 
-SOURCE = src/*.js \
+SOURCE_JAVASCRIPT=src/*js
+
+SOURCE = $(SOURCE_JAVASCRIPT) \
 		 src/vendor/*js \
 		 src/stylesheet.css \
 		 src/metadata.json \
@@ -32,10 +34,12 @@ install: archive
 	mkdir -p $(EXTENSION_PATH)
 	unzip $(ZIPFILE) -d $(EXTENSION_PATH)
 
-
 src/schemas/gschemas.compiled: src/schemas/$(SCHEMA)
 	glib-compile-schemas src/schemas/
 
+src/locale/gnome-shell-screenshot.pot: $(SOURCE_JAVASCRIPT)
+	xgettext -k_ -kN_ -o $@ $(sort $^)
+
 $(ZIPFILE): $(SOURCE) schemas
 	-rm $(ZIPFILE)
 	cd src && zip -r ../$(ZIPFILE) $(patsubst src/%,%,$(SOURCE))

Add .pot file to Makefile target