posix: build gettext files

Originally committed to SVN as r373.
This commit is contained in:
David Lamparter 2006-05-06 14:20:34 +00:00
parent 46fe90b5ef
commit dc71ec961d
3 changed files with 17 additions and 1 deletions

View file

@ -1,3 +1,3 @@
AUTOMAKE_OPTIONS = foreign AUTOMAKE_OPTIONS = foreign
SUBDIRS = ac core SUBDIRS = ac core locale

View file

@ -6,6 +6,8 @@ AC_CONFIG_HEADER([core/posix/acconf.h])
AC_CANONICAL_HOST AC_CANONICAL_HOST
AM_GNU_GETTEXT
AC_DEFUN([AC_C_FLAG], [{ AC_DEFUN([AC_C_FLAG], [{
AC_LANG_PUSH(C) AC_LANG_PUSH(C)
ac_c_flag_save="$CFLAGS" ac_c_flag_save="$CFLAGS"
@ -139,6 +141,7 @@ AC_HEADER_STDBOOL
AC_OUTPUT([ AC_OUTPUT([
Makefile Makefile
ac/Makefile ac/Makefile
locale/Makefile
core/Makefile core/Makefile
core/posix/Makefile core/posix/Makefile
core/bitmaps/Makefile core/bitmaps/Makefile

13
locale/Makefile.am Normal file
View 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