#
# rebooter messages makefile
#

PO_FILES= fi.po
MO_FILES= $(PO_FILES:.po=.mo)

.SUFFIXES: .po .mo

all: $(MO_FILES)

clean:
	rm -f $(MO_FILES)

depend:

# Hmmm... msgmerge should default to '-e' but even with it
# it grrr... converts  to \something... fuck the msgmerge...

msgmerge:
	for i in $(PO_FILES); do \
	msgmerge -e $$i TEMPLATE.po > $$i.new; # \
	if diff $$i $$i.new; then \
		rm $$i.new; \
	else \
		mv $$i.new $$i; \
	fi; \
	done

.po.mo:
	msgfmt -o $@ $<
	mkdirhier ../../LC_MESSAGES
	cp $@ ../../LC_MESSAGES
