Hopefully the last attempt at fixing the build rules for making .po and .gmo files

darcs-hash:20060123174742-ac50b-194561d756a9f3d78e1aeffe16e6c4d7c81593fe.gz
This commit is contained in:
axel 2006-01-24 03:47:42 +10:00
parent ecdc5bdbc7
commit 14ae10daf7

View File

@ -236,13 +236,13 @@ doc.h:$(BUILTIN_DOC_SRC) $(CMD_DOC_SRC) doc_src/doc.hdr
echo "*/" >>$@
# Compile translation file
%.gmo:%.po
%.gmo:
if test $(HAVE_GETTEXT) = 1; then \
msgfmt $*.po -o $*.gmo; \
fi
# Update existing po file or copy messages.pot
%.po:
%.po:messages.pot
if test $(HAVE_GETTEXT) = 1;then \
if test -f $*.po; then \
msgmerge -U --backup=existing $*.po messages.pot;\