Skip to content

Instantly share code, notes, and snippets.

@codingjoe
Created May 16, 2018 08:32
Show Gist options
  • Save codingjoe/3cd82a7aaa34711b3e66ea9d7ccf8c1a to your computer and use it in GitHub Desktop.
Save codingjoe/3cd82a7aaa34711b3e66ea9d7ccf8c1a to your computer and use it in GitHub Desktop.
compile gettext PO files
MSGLANGS = $(wildcard */locale/*/LC_MESSAGES/*.po)
MSGOBJS = $(MSGLANGS:.po=.mo)
gettext: $(MSGOBJS)
gettext-clean:
-rm ${MSGOBJS}
%.mo: %.po
msgfmt -c -o $@ $*.po
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment