# Installation directories localedir = ${prefix}/usr/share/locale LANGS = $(shell ls *.po | xargs -i basename {} .po ) PGOAL = drakwizard GOALS = $(foreach a, $(LANGS), $(a).mo) all: $(GOALS) install: all for l in $(LANGS); do \ install -d $(localedir)/$$l/LC_MESSAGES; \ install -m 644 $$l.mo $(localedir)/$$l/LC_MESSAGES/$(PGOAL).mo; \ done clean: rm -f *~ *.[oas] *.mo $(GOALS) TAGS %.h: @touch $@ %.mo: %.po msgfmt -o $@ $<