X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/blobdiff_plain/900c4146d17198f324372f99c56b982de5459685..e287361d35cef81ceee2b6cf538455d93e8e3beb:/Makefile.am diff --git a/Makefile.am b/Makefile.am index f2efb18..1371614 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,11 +1,11 @@ -# Copyright © 2011 Nick Bowler +# Copyright © 2011-2012 Nick Bowler # # License WTFPL2: Do What The Fuck You Want To Public License, version 2. # This is free software: you are free to do what the fuck you want to. # There is NO WARRANTY, to the extent permitted by law. AUTOMAKE_OPTIONS = parallel-tests color-tests -ACLOCAL_AMFLAGS = -I m4 +ACLOCAL_AMFLAGS = -I m4 -I common/m4 # For Gnulib MOSTLYCLEANFILES = @@ -114,9 +114,11 @@ test/typegen.h: $(srcdir)/src/types.lst $(srcdir)/test/typegen.sh $(AM_V_at)mv -f $@.tmp $@ # Supporting rules for gettext. -ALL_MOFILES = $(POFILES:.po=.mo) -EXTRA_DIST += po/$(PACKAGE).pot po/LINGUAS $(POFILES) $(ALL_MOFILES) -MAINTAINERCLEANFILES += po/$(PACKAGE).pot $(ALL_MOFILES) +include $(top_srcdir)/common/snippet/gettext.mk + +EXTRA_DIST += po/$(PACKAGE).pot +MAINTAINERCLEANFILES += po/$(PACKAGE).pot + XGETTEXT_OPTS = -D $(builddir) -D $(srcdir) --from-code=utf-8 \ --add-comments=TRANSLATORS: --foreign-user \ --package-name=$(PACKAGE) --package-version=$(PACKAGE_VERSION) \ @@ -130,42 +132,6 @@ po/$(PACKAGE).pot: $(SOURCES) src/errors.lst -ajo $@.tmp src/errors.lst $(AM_V_at) mv -f $@.tmp $@ -.po.mo: - $(AM_V_at)$(MKDIR_P) $(@D) - $(AM_V_GEN)$(MSGFMT) -c -o $@ $< - -install-data-local: install-mo -install-mo: $(MOFILES) - for mo in $?; do \ - lang=`expr "$$mo" : '.*/\(.*\)\.mo' \| "$$mo" : '\(.*\)\.mo'`; \ - test x"$$lang" = x"" && exit 1; \ - inst="$(DESTDIR)$(localedir)/$$lang/LC_MESSAGES"; \ - (set -x; $(MKDIR_P) "$$inst") \ - || exit $$?; \ - (set -x; $(INSTALL_DATA) "$$mo" "$$inst/$(PACKAGE).mo") \ - || exit $$?; \ - done - -installdirs-local: installdirs-mo -installdirs-mo: - for mo in $(MOFILES); do \ - lang=`expr "$$mo" : '.*/\(.*\)\.mo' \| "$$mo" : '\(.*\)\.mo'`; \ - test x"$$lang" = x"" && exit 1; \ - inst="$(DESTDIR)$(localedir)/$$lang/LC_MESSAGES"; \ - (set -x; $(MKDIR_P) "$$inst") || exit $$?; \ - done - -uninstall-local: uninstall-mo -uninstall-mo: - for mo in $(ALL_MOFILES); do \ - lang=`expr "$$mo" : '.*/\(.*\)\.mo' \| "$$mo" : '\(.*\)\.mo'`; \ - test x"$$lang" = x"" && exit 1; \ - inst="$(DESTDIR)$(localedir)/$$lang/LC_MESSAGES"; \ - (set -x; cd "$$inst" && rm -f '$(PACKAGE).mo'); \ - done - -.PHONY: install-mo installdirs-mo uninstall-mo - # These are required to prevent the builtin lex/yacc rules from # superseding ours... src/scan.c src/scan.h: src/scan.stamp