forked from mia/Aegisub
posix: build gettext files
Originally committed to SVN as r373.
This commit is contained in:
parent
46fe90b5ef
commit
dc71ec961d
3 changed files with 17 additions and 1 deletions
|
@ -1,3 +1,3 @@
|
|||
AUTOMAKE_OPTIONS = foreign
|
||||
SUBDIRS = ac core
|
||||
SUBDIRS = ac core locale
|
||||
|
||||
|
|
|
@ -6,6 +6,8 @@ AC_CONFIG_HEADER([core/posix/acconf.h])
|
|||
|
||||
AC_CANONICAL_HOST
|
||||
|
||||
AM_GNU_GETTEXT
|
||||
|
||||
AC_DEFUN([AC_C_FLAG], [{
|
||||
AC_LANG_PUSH(C)
|
||||
ac_c_flag_save="$CFLAGS"
|
||||
|
@ -139,6 +141,7 @@ AC_HEADER_STDBOOL
|
|||
AC_OUTPUT([
|
||||
Makefile
|
||||
ac/Makefile
|
||||
locale/Makefile
|
||||
core/Makefile
|
||||
core/posix/Makefile
|
||||
core/bitmaps/Makefile
|
||||
|
|
13
locale/Makefile.am
Normal file
13
locale/Makefile.am
Normal file
|
@ -0,0 +1,13 @@
|
|||
LANGS=de es fr it ko pt_BR ru
|
||||
localedir = $(datadir)/locale
|
||||
|
||||
%.gmo: %/aegisub.po
|
||||
$(MSGFMT) -o $@ $<
|
||||
|
||||
all-am: $(foreach lang,$(LANGS),$(lang).gmo)
|
||||
|
||||
install-data-am: all-am
|
||||
for lang in $(LANGS); do \
|
||||
$(install_sh_DATA) $${lang}.gmo $(DESTDIR)$(localedir)/$${lang}/LC_MESSAGES/aegisub.mo; \
|
||||
done
|
||||
|
Loading…
Reference in a new issue