<NME> Makefile
<BEF> .PHONY: all schemas zipfile lint

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

LANGUAGES = bg ca cs de el es eu fr id_ID it pl pt_BR ru tr uk zh_CN nl

all: update_dependencies
	make archive
		 src/stylesheet.css \
		 src/metadata.json \
		 src/empty64.png \
		 src/locale/*/LC_MESSAGES/gnome-shell-screenshot.mo \
		 src/schemas/*

ZIPFILE = gnome-shell-screenshot.zip

UUID = gnome-shell-screenshot@ttll.de
lint:
	eslint src/*js

archive: $(ZIPFILE)

uninstall:

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

prefs: install
	gnome-shell-extension-prefs $(UUID)

<MSG> Don't always rebuild translations in `make`

Only when explicitly demanded (`make translations`)

<DFF> @@ -1,4 +1,4 @@
-.PHONY: all schemas zipfile lint
+.PHONY: all schemas zipfile lint translations
 
 SCHEMA = org.gnome.shell.extensions.screenshot.gschema.xml
 
@@ -9,9 +9,10 @@ SOURCE = $(SOURCE_JAVASCRIPT) \
 		 src/stylesheet.css \
 		 src/metadata.json \
 		 src/empty64.png \
-		 src/locale/*/LC_MESSAGES/gnome-shell-screenshot.mo \
 		 src/schemas/*
 
+MO_FILES = src/locale/*/LC_MESSAGES/gnome-shell-screenshot.mo
+
 ZIPFILE = gnome-shell-screenshot.zip
 
 UUID = gnome-shell-screenshot@ttll.de
@@ -24,6 +25,8 @@ schemas: src/schemas/gschemas.compiled
 lint:
 	eslint src/*js
 
+translations: $(MO_FILES)
+
 archive: $(ZIPFILE)
 
 uninstall:
@@ -57,7 +60,9 @@ src/locale/%/LC_MESSAGES/gnome-shell-screenshot.mo: src/locale/%/*.po
 
 $(ZIPFILE): $(SOURCE) schemas
 	-rm $(ZIPFILE)
-	cd src && zip -r ../$(ZIPFILE) $(patsubst src/%,%,$(SOURCE))
+	cd src && zip -r ../$(ZIPFILE) \
+	   $(patsubst src/%,%,$(SOURCE)) \
+	   $(patsubst src/%,%,$(MO_FILES))
 
 prefs: install
 	gnome-shell-extension-prefs $(UUID)

Don't always rebuild translations in `make`