Makefile.in (2050B)
1 POFILES = ja.po ru.po 2 3 DOMAIN = alsaconf 4 GETTEXT_SRC = ../alsaconf.in 5 6 XGETTEXT_OPTIONS = -kxmsg -kxecho 7 8 top_builddir = ../.. 9 10 srcdir = @srcdir@ 11 datadir = @datadir@ 12 exec_prefix = @exec_prefix@ 13 prefix = @prefix@ 14 localedir = $(datadir)/locale 15 16 USE_NLS = @USE_NLS@ 17 INSTALL = @INSTALL@ 18 INSTALL_DATA = @INSTALL_DATA@ 19 # mkdir_p = @mkdir_p@ 20 mkdir_p = mkdir -p -- 21 XGETTEXT = @XGETTEXT@ 22 MSGFMT = @MSGFMT@ 23 GMSGFMT = @GMSGFMT@ 24 MSGMERGE = @MSGMERGE@ 25 MSGMERGE_UPDATE = @MSGMERGE@ --update 26 27 DISTFILES = $(POFILES) Makefile.in 28 CATALOGS = $(POFILES:.po=.gmo) 29 30 all: all-@USE_NLS@ 31 32 all-yes: $(CATALOGS) 33 all-no: 34 35 .SUFFIXES: .po .gmo .mo 36 37 %.mo : $(srcdir)/%.po 38 $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@ 39 40 %.gmo : $(srcdir)/%.po 41 @lang=`echo $(srcdir)/$* | sed -e 's,.*/,,'`; \ 42 rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o t-$${lang}.gmo $(srcdir)/$${lang}.po && mv t-$${lang}.gmo $${lang}.gmo 43 44 $(DOMAIN).pot: $(GETTEXT_SRC) 45 $(XGETTEXT) -o$@ --default-domain=$(DOMAIN) \ 46 --add-comments=TRANSLATORS: --language=Shell \ 47 $(XGETTEXT_OPTIONS) $< 48 49 check check_recursive: 50 51 clean: 52 rm -f $(CATALOGS) $(POFILES:.po=.mo) $(DOMAIN).pot 53 54 update-po: $(DOMAIN).pot 55 @for po in $(POFILES); do \ 56 $(MSGMERGE_UPDATE) $(srcdir)/$$po $(DOMAIN).pot; \ 57 done 58 59 install-data-no: 60 install-data-yes: all 61 $(mkdir_p) $(DESTDIR)$(datadir) 62 @catalogs='$(CATALOGS)'; \ 63 for cat in $$catalogs; do \ 64 lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ 65 dir=$(localedir)/$$lang/LC_MESSAGES; \ 66 $(mkdir_p) $(DESTDIR)$$dir; \ 67 $(INSTALL_DATA) $$cat $(DESTDIR)$$dir/$(DOMAIN).mo; \ 68 done 69 70 install-data: install-data-@USE_NLS@ 71 install: install-data 72 73 uninstall-data-no: 74 uninstall-data-yes: 75 @catalogs='$(CATALOGS)'; \ 76 for cat in $$catalogs; do \ 77 cat=`basename $$cat`; \ 78 lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ 79 rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo; \ 80 done 81 82 uninstall-data: uninstall-data-@USE_NLS@ 83 uninstall: uninstall-data 84 85 dist distdir: $(DISTFILES) 86 @for file in $(DISTFILES); do \ 87 cp -p $$file $(distdir); \ 88 done 89 90 distclean: clean 91 rm -f Makefile *~