This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: I18N: automatic determination of potfiles list
- To: zack at codesourcery dot com
- Subject: Re: I18N: automatic determination of potfiles list
- From: DJ Delorie <dj at redhat dot com>
- Date: Tue, 30 Oct 2001 00:48:03 -0500
- CC: gcc-patches at gcc dot gnu dot org, philippt at t-online dot de
- References: <20011029211709.D28319@codesourcery.com>
> Bootstrapped i686-linux; ok to apply?
I will comment only on the Makefile/configure parts...
Starting with, should this be something enabled by
--enable-maintainer-mode ? It isn't obvious how it's disabled when
the tools aren't available.
> -native: config.status auto-host.h intl.all $(LANGUAGES) \
> +native: config.status auto-host.h intl.all @POSUB@ $(LANGUAGES) \
> $(EXTRA_PASSES) $(EXTRA_PROGRAMS) $(USE_COLLECT2)
"po" is a directory. You want to avoid listing
a directory as a dependency unless you really mean it...
> +CATALOGS = @CATALOGS@
> +
> +po: $(CATALOGS)
Which it looks like you aren't, or that rule is wrong. Unless you
really mean to make the po directory depend on the files within it,
which IMHO is a bad idea. Perhaps a stamp-po should be used?
> +# Dummy rule to deal with dependency produced by use of
> +# "install-@POSUB@" above, when NLS is disabled.
> +install-:
This should probably have an '@true' command. Maybe a .PHONY too.
> +install-po:
> + $(mkinstalldirs) $(DESTDIR)$(datadir)
> + for cat in $(CATALOGS); do \
> + cat=`basename $$cat`; \
> + lang=`echo $$cat | sed 's/\.gmo$$//'`; \
> + dir=$(localedir)/$$lang/LC_MESSAGES; \
> + $(mkinstalldirs) $(DESTDIR)$$dir; \
Check for this mkinstalldirs failing?
> +# Create po/ as an empty directory; used by the .po/.gmo build rules for
> +# scratch space.
> +test -d po || mkdir po
Shouldn't the Makefile do this?