| 1 |
|
| 2 |
|
| 3 |
LINGUAS = de fr sv |
| 4 |
package = beneath-a-steel-sky |
| 5 |
podir = $(CURDIR)/debian/po |
| 6 |
localedir = /usr/share/locale |
| 7 |
|
| 8 |
$(podir)/templates.pot: |
| 9 |
xgettext \ |
| 10 |
--language=Shell \ |
| 11 |
--copyright-holder="" \ |
| 12 |
--output=$(podir)/templates.pot \ |
| 13 |
$(CURDIR)/debian/sky |
| 14 |
|
| 15 |
%: |
| 16 |
dh $@ |
| 17 |
|
| 18 |
override_dh_auto_build: |
| 19 |
for lang in $(LINGUAS); do \ |
| 20 |
msgfmt -c -v --statistics -o $(podir)/$$lang.mo $(podir)/$$lang.po; \ |
| 21 |
done |
| 22 |
|
| 23 |
execute_after_dh_clean: |
| 24 |
dh_clean $(podir)/*.mo |
| 25 |
|
| 26 |
execute_before_dh_install: |
| 27 |
for lang in $(LINGUAS); do \ |
| 28 |
dir=$(localedir)/$$lang/LC_MESSAGES/; \ |
| 29 |
dh_installdirs $$dir; \ |
| 30 |
cp $(podir)/$$lang.mo \ |
| 31 |
$(CURDIR)/debian/$(package)$$dir/sky.mo; \ |
| 32 |
done |