Skip to content

Commit

Permalink
add 'make compile-translations'
Browse files Browse the repository at this point in the history
  • Loading branch information
thjaeger committed Jan 14, 2009
1 parent b59de82 commit 1c425f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ ARCH = $(shell uname -m)

all: $(BINARY) $(MOFILES)

.PHONY: all clean snapshot release translate
.PHONY: all clean snapshot release translate update-translations compile-translations

clean:
$(RM) $(OFILES) $(BINARY) $(GENFILES) $(DEPFILES) $(MANPAGE) $(GZFILES) po/*.pot
Expand Down Expand Up @@ -97,6 +97,8 @@ po/POTFILES.in: $(CCFILES) $(HFILES)
translate: po/POTFILES.in
cd po && XGETTEXT_ARGS="--package-name=easystroke --copyright-holder='Thomas Jaeger <ThJaeger@gmail.com>'" intltool-update --pot -g messages

compile-translations: $(MOFILES)

update-translations: po/POTFILES.in
cd po && for f in $(POFILES); do \
intltool-update `echo $$f | sed "s|po/\(.*\)\.po$$|\1|"`; \
Expand Down

0 comments on commit 1c425f1

Please sign in to comment.