prefix = @prefix@
exec_prefix = @exec_prefix@
+datarootdir = @datarootdir@
datadir = @datadir@
localedir = $(datadir)/locale
gettextsrcdir = $(datadir)/gettext/po
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
-MKINSTALLDIRS = @MKINSTALLDIRS@
-mkinstalldirs = $(SHELL) $(MKINSTALLDIRS)
+mkinstalldirs = @MKDIR_P@
GMSGFMT = @GMSGFMT@
MSGFMT = @MSGFMT@
.SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update
.po.mo:
- @echo "$(MSGFMT) -c -o $@ $<"; \
- $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@
+ $(E) "$(MSGFMT) -c -o $@ $<"
+ $(Q) $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@
.po.gmo:
@lang=`echo $* | sed -e 's,.*/,,'`; \
all: all-@USE_NLS@
-all-yes: stamp-po
+all-yes: @MAINTAINER_CMT@stamp-po
all-no:
# stamp-po is a timestamp denoting the last time at which the CATALOGS have
# This target rebuilds $(DOMAIN).pot; it is an expensive operation.
# Note that $(DOMAIN).pot is not touched if it doesn't need to be changed.
-$(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed
+$(DOMAIN).pot-update: $(srcdir)/POTFILES.in remove-potcdate.sed \
+ $(srcdir)/at-expand.pl
$(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \
+ --directory=$(top_builddir) \
--add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \
--files-from=$(srcdir)/POTFILES.in \
--copyright-holder='$(COPYRIGHT_HOLDER)' \
--msgid-bugs-address='$(MSGID_BUGS_ADDRESS)'
+ perl $(srcdir)/at-expand.pl < $(DOMAIN).po > $(DOMAIN).po.new
+ mv $(DOMAIN).po $(DOMAIN).po.bak
+ mv $(DOMAIN).po.new $(DOMAIN).po
test ! -f $(DOMAIN).po || { \
if test -f $(srcdir)/$(DOMAIN).pot; then \
sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \
done; \
done
-check: all
+fullcheck check: all
info dvi ps pdf html tags TAGS ctags CTAGS ID:
mostlyclean:
- rm -f remove-potcdate.sed
+ rm -f remove-potcdate.sed
rm -f stamp-poT
rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po
+ rm -f $(DOMAIN).po.bak
rm -fr *.o
-clean: mostlyclean
+coverage.txt::
+
+clean:: mostlyclean
distclean: clean
rm -f Makefile Makefile.in POTFILES *.mo