aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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)