From 120577d003ad5073295d4713bc74c515ea9fbc23 Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Mon, 3 Dec 2007 15:28:00 +0000 Subject: [PATCH] addresses #14 * add support for adding new languages --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5ce410c..48f2f5f 100644 --- a/Makefile +++ b/Makefile @@ -52,7 +52,13 @@ $(MOFILES): %.mo: %.po $(POFILES): %: $(POT) @echo "msgmerge: $@" - msgmerge -U $@ $(POT) + podir=`dirname $@` ; \ + if test ! -d $$podir; then mkdir -p $$podir; fi + if test -f $@; then \ + msgmerge -U $@ $(POT); \ + else \ + cp $(POT) $@; \ + fi touch $@ $(POT): $(XSRCFILES) $(XJSFILES) po/pot.sed