X-Git-Url: https://pere.pagekite.me/gitweb/text-relativity-of-wrong-asimov.git/blobdiff_plain/b8788c2a3d775829a8020b25c9fd13999eb2e479..1939fb1dafc8def92b92d1690e46faca755db81c:/Makefile diff --git a/Makefile b/Makefile index 736ae5f..79aef30 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,15 @@ all: The_Relativity_of_Wrong.nb.txt The_Relativity_of_Wrong.pot: The_Relativity_of_Wrong.txt - po4a-gettextize -f text -m The_Relativity_of_Wrong.txt > $@.new && mv $@.new $@ + po4a-gettextize -f text -m The_Relativity_of_Wrong.txt \ + -M UTF-8 -L UTF-8 --package-name "Relativitiy of Wrong" \ + | sed 's/CHARSET/UTF-8/' > $@.new && mv $@.new $@ -The_Relativity_of_Wrong.nb.txt: The_Relativity_of_Wrong.nb.po +The_Relativity_of_Wrong.nb.po: The_Relativity_of_Wrong.pot + po4a --no-translations --msgmerge-opt --no-location po4a.cfg + +The_Relativity_of_Wrong.nb.txt: The_Relativity_of_Wrong.nb.po The_Relativity_of_Wrong.txt po4a --translate-only The_Relativity_of_Wrong.nb.txt po4a.cfg + +stats: + for f in *.po; do printf "$$f "; msgfmt --output /dev/null --statistics $$f; done