summaryrefslogtreecommitdiff
path: root/MakeTAGS
diff options
context:
space:
mode:
Diffstat (limited to 'MakeTAGS')
-rw-r--r--MakeTAGS5
1 files changed, 4 insertions, 1 deletions
diff --git a/MakeTAGS b/MakeTAGS
index 7aaf0ac7da..3915fd36c2 100644
--- a/MakeTAGS
+++ b/MakeTAGS
@@ -162,10 +162,13 @@ $P/subdirs.pot: $(subdirs:%=$P/%.pot)
do sed "s%^#: %&$$d/%" $P/$$d.pot; done) > $@.new
mv -f $@.new $@
+# Get $(version) defined.
+include $(common-objpfx)version.mk
+
# Combine all the messages into the final sorted template translation file.
$P/SYS_libc.pot: $(all-pot)
@rm -f $@.new
- sed -e 's/VERSION/$(version)/' -e "s/DATE/`date +'%Y-%m-%d %k:%M'`" \
+ sed -e 's/VERSION/$(version)/' -e "s/DATE/`date +'%Y-%m-%d %k:%M'`/" \
po/header.pot > $@.new
$(XGETTEXT) -d - -n -s --omit-header $^ >> $@.new
mv -f $@.new $@