#!/usr/bin/make -f %: dh $@ override_dh_auto_build: for po in locale/*/LC_MESSAGES/*.po; do \ msgfmt -cv -o $${po%.po}.mo $$po; \ done glib-compile-schemas --targetdir=src/schemas src/schemas dh_auto_build override_dh_clean: rm -f locale/*/LC_MESSAGES/*.mo dh_clean override_dh_gencontrol: dh_gencontrol -- \ -Vgnome:MinimumVersion=$(shell python3 -c "import json; print(min(int(x) for x in json.load(open('src/metadata.json', 'rt'))['shell-version']))") \ -Vgnome:MaximumVersion=$(shell python3 -c "import json; print(1+max(int(x) for x in json.load(open('src/metadata.json', 'rt'))['shell-version']))")