| 1 |
|
| 2 |
DOMAIN=gdebi |
| 3 |
PO_FILES := $(wildcard *.po) |
| 4 |
[email protected] |
| 5 |
|
| 6 |
all: update-po |
| 7 |
|
| 8 |
top_srcdir=../ |
| 9 |
|
| 10 |
# update the pot |
| 11 |
$(DOMAIN).pot: |
| 12 |
XGETTEXT_ARGS=--msgid-bugs-address=$(CONTACT) intltool-update -p -g $(DOMAIN) |
| 13 |
|
| 14 |
# merge the new stuff into the po files |
| 15 |
merge-po: $(PO_FILES) |
| 16 |
XGETTEXT_ARGS=--msgid-bugs-address=$(CONTACT) intltool-update -r -g $(DOMAIN); |
| 17 |
|
| 18 |
# create mo from the pos |
| 19 |
%.mo : %.po |
| 20 |
mkdir -p mo/$(subst .po,,$<)/LC_MESSAGES/ |
| 21 |
msgfmt $< -o mo/$(subst .po,,$<)/LC_MESSAGES/$(DOMAIN).mo |
| 22 |
|
| 23 |
# dummy target |
| 24 |
update-po: $(DOMAIN).pot merge-po $(patsubst %.po,%.mo,$(wildcard *.po)) |
| 25 |
# update the po files |
| 26 |
#for f in $(PO_FILES); do \ |
| 27 |
# intltool-update -r $${f%.po} -g $(DOMAIN); \ |
| 28 |
#done |
| 29 |
|