Commit fd3a0c0c authored by Vitaly Lipatov's avatar Vitaly Lipatov

add initial po/Makefile

parent 6de8107e
MSGFMT = msgfmt -v
MSGMERGE = msgmerge
MSGMERGE_UPDATE = msgmerge --update
MSGINIT = msginit
MSGCONV = msgconv
MSGFILTER = msgfilter
SCRIPTLIST = $(shell for i in bin pack.d play.d repack.d ; do find ../$$i -type f ; done)
PROJECT = eepm
LANGUAGE = ru
all: $(PROJECT).mo
$(PROJECT).mo: $(PROJECT).po
$(MSGFMT) -c -o t-$@ $< && mv t-$@ $@
$(PROJECT).pot: $(SCRIPTLIST) Makefile
echo $(SCRIPTLIST) | xargs xgettext -a -o $@ --language Shell --from-code=utf-8 $^
$(PROJECT).po: $(PROJECT).pot
$(MSGMERGE_UPDATE) $@ $<
install: $(PROJECT).mo
install -D $< $(DESTDIR)$(datadir)/locale/$(LANGUAGE)/LC_MESSAGES/$<
clean:
rm -f $(PROJECT).mo
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment