aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2025-05-15 04:22:17 -0300
committerEuAndreh <eu@euandre.org>2025-05-15 04:22:17 -0300
commitefea4790e9f381a5bc52a01d5ff68f7563b9004f (patch)
tree56b3a7ee5b0a0bb1e822cee9cc301d1dc1e1c868 /Makefile
parentMakefile: Replace mandir(1) with instool(1) (diff)
downloadgotext-efea4790e9f381a5bc52a01d5ff68f7563b9004f.tar.gz
gotext-efea4790e9f381a5bc52a01d5ff68f7563b9004f.tar.xz
Add po/gotext/
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 008ee15..087bbb6 100644
--- a/Makefile
+++ b/Makefile
@@ -204,6 +204,8 @@ i18n-doc:
po4a po/doc/po4a.cfg
i18n-code:
+ gotext -k 'Gettext' src/$(NAME).go > po/$(NAME)/$(NAME).pot
+ po4a po/$(NAME)/po4a.cfg
gotext tests/functional/api-usage/gotext.go > po/tests/tests.pot
po4a po/tests/po4a.cfg
@@ -229,6 +231,7 @@ install: all
cp src/$(NAME).a '$(DESTDIR)$(GOLIBDIR)'
cp $(sources) '$(DESTDIR)$(SRCDIR)'
instool '$(DESTDIR)$(MANDIR)' install man $(manpages.N)
+ instool '$(DESTDIR)$(LOCALEDIR)' install mo $(sources.mo)
## Uninstalls from $(DESTDIR)$(PREFIX). This is a perfect mirror
## of the "install" target, and removes *all* that was installed.
@@ -240,6 +243,7 @@ uninstall:
'$(DESTDIR)$(SRCDIR)' \
instool '$(DESTDIR)$(MANDIR)' uninstall man $(manpages.N)
+ instool '$(DESTDIR)$(LOCALEDIR)' uninstall mo $(sources.mo)