TOPDIR=../../ NO_DEP_NEEDED=yes MASTER=iwlocator.pot all: trans include $(TOPDIR)/conf/Makefile.common TRANSBASE=$(basename $(wildcard */LC_MESSAGES/*.po)) MOFILES=$(addsuffix .mo, $(TRANSBASE)) POFILES=$(addsuffix .po, $(TRANSBASE)) POMFILES=$(addsuffix .pom, $(TRANSBASE)) STERILFILES=$(MOFILES) MSGFMT=msgfmt -c trans: $(MOFILES) merge: $(POMFILES) @$(MAKE) merge2 merge2: $(POFILES) ifeq ($(MAKECMDGOALS),merge2) %.po:%.pom @echo $(BLU)[MV]$(NOR) $*.pom $*.po @mv $*.pom $*.po endif ifeq ($(MAKECMDGOALS),merge) %.pom:%.po @echo $(TUK)[MSGMERGE]$(NOR) $*.po @msgmerge -q $*.po $(MASTER) > $*.pom endif %.mo:%.po @echo $(TUK)[MSGFMT]$(NOR) $*.mo @msgfmt -o $*.mo $*.po