~usb-creator-hackers/usb-creator/trunk

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Benjamin Drung
  • Date: 2022-11-02 13:01:26 UTC
  • Revision ID: benjamin.drung@canonical.com-20221102130126-4z0xyivy5f37dp13
Move to https://code.launchpad.net/~usb-creator-hackers/usb-creator/+git/main

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
update-po:
2
 
        find -regex "./\(usbcreator\|dbus\|gui\|desktop\).*\.\(py\|glade\|ui\|in\)" \
3
 
                | sed '/gtk\.ui/ s,^,[type: gettext/glade],' > po/POTFILES.in
4
 
        echo ./bin/usb-creator-gtk >> po/POTFILES.in
5
 
        echo ./bin/usb-creator-kde >> po/POTFILES.in
6
 
        python setup.py build_i18n --merge-po --po-dir po
7
 
 
8
 
check: tests/run
9
 
 
10
 
clean:
11
 
        rm -rf build/*
12
 
 
13
 
translations: po/*.po
14
 
        # TODO evand 2009-07-28: Ideally we should build the mo files once,
15
 
        # instead of once here and once in setup.py.
16
 
        # Taken from Wubi.
17
 
        rm -rf build/translations
18
 
        mkdir -p build/translations/
19
 
        @for po in $^; do \
20
 
                language=`basename $$po`; \
21
 
                language=$${language%%.po}; \
22
 
                target="build/translations/$$language/LC_MESSAGES"; \
23
 
                mkdir -p $$target; \
24
 
                msgfmt --output=$$target/usbcreator.mo $$po; \
25
 
        done