Einfaches Makefile für Gettext-Dateien

Mit diesem Makefile kann man automatisch aus allen .po-Files in einem Verzeichnis aktuelle .mo-Files generieren:

POFILES = $(shell ls *.po)
MOFILES = $(POFILES:%.po=%.mo)

all: $(MOFILES)

%.mo: %.po
       msgfmt $< -o $@

Leave a Reply