MSGLANGS = $(wildcard */locale/*/LC_MESSAGES/*.po) MSGOBJS = $(MSGLANGS:.po=.mo) gettext: $(MSGOBJS) gettext-clean: -rm ${MSGOBJS} %.mo: %.po msgfmt -c -o $@ $*.po