NAME = DrakX
LOCALEDIR = ${prefix}/share/locale
PMSFILES = *.pm share/meta-task/compssUsers.pl*
PMSFILES_HERE = $(wildcard $(PMSFILES:%=../../%))
MAIN_PO_FILES = ../../../share/po/libDrakX.pot
POFILES = $(wildcard *.po)
MOFILES = $(POFILES:%.po=%.mo)
LANGS = $(POFILES:%.po=%)
default: $(MOFILES)
%.mo: %.po
msgfmt -o $@ $<
merge: $(NAME).pot
for n in $(POFILES); do \
echo "Merging $$n"; \
msgmerge $$n $(NAME).pot > "$$n"t ; \
mv -f "$$n"t $$n ; \
done
$(NAME).pot: $(PMSFILES_HERE)
cd ../.. ; perl_checker -q --generate-pot share/po/.$@ $(PMSFILES)
xgettext $(MAIN_PO_FILES:%=-x %) -o $@ .$@
rm -f .$@
install: $(MOFILES)
for l in $(LANGS); do \
install -d $(LOCALEDIR)/$$l/LC_MESSAGES; \
install -m 644 $$l.mo $(LOCALEDIR)/$$l/LC_MESSAGES/$(NAME).mo; \
done
clean:
@rm -rf *.mo $(POFILES:%=%t)
='get'>
blob: 4eda9ae592e104579f2801b566caed8f7f3e8411 (
plain)