generate-sources:
    @python ./build-aux/flatpak-cargo-generator.py ./Cargo.lock -o generated-sources.json

update-potfiles:
    @git ls-files 'src/*.rs' 'data/resources/ui_templates/**/*.blp' 'data/*.desktop.in*' '*.gschema.xml' '*.metainfo.xml.in*' > po/POTFILES
    @git --no-pager diff po/POTFILES

update-pot: update-potfiles
    @xgettext -f po/POTFILES -o po/newsflash.pot --keyword=i18n --keyword=i18n_f --keyword=i18n_k --keyword=ni18n:1,2 --keyword=ni18n_f:1,2 --keyword=ni18n_k:1,2
