diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-07-09 20:12:32 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-07-09 20:21:36 -0400 |
commit | e3d7fbca888e07f02c5867dd1e50393247a066b7 (patch) | |
tree | ba8c5bac162127ceab0eacb2a6f33de759c62943 /po/Makefile | |
parent | 371a7e29d5718cadbe7cd1830050487f60946266 (diff) |
po: add pot headers
Diffstat (limited to 'po/Makefile')
-rw-r--r-- | po/Makefile | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/po/Makefile b/po/Makefile index 1e56edd..96d8490 100644 --- a/po/Makefile +++ b/po/Makefile @@ -6,6 +6,16 @@ locales := $(filter-out .,$(sort $(patsubst %/,%,$(dir $(files.src.src))))) files.src.gen += $(addsuffix .pot,$(domains)) nested.subdirs += $(locales) + +# Have the header include the version number +$(srcdir)/header.po.head: $(srcdir)/%: $(srcdir)/%.in + @echo 'EDIT < $< > $@'; $(libretools.edit) < '$<' > '$@' +$(srcdir)/header.po.head: $(var.)PACKAGE $(var.)VERSION +files.src.int += header.po.head + +# Rely on ../Makefile to fill in a list of our .pot dependencies +$(srcdir)/%.pot: $(srcdir)/header.po.head + cat $^ | msguniq -Fi > '$@' at.subdirs += .. include $(topsrcdir)/build-aux/Makefile.tail.mk |