This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Maintainer mode and NLS requires srcdir = objdir?
- To: nickc at redhat dot com
- Subject: Re: Maintainer mode and NLS requires srcdir = objdir?
- From: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- Date: Fri, 23 Mar 2001 03:12:51 +0100
- CC: binutils at sources dot redhat dot com
> From: Nick Clifton <nickc@redhat.com>
> Date: 22 Mar 2001 14:09:52 -0800
> Here is a potential patch to fix this.
So I don't have to do this? Thanks!
> I am not checking it in right away as I am would like to see if anyone
> has any opinions or problems with it.
See last comment. Except for that, it works here, and seems to
work cleanly with --enable-maintainer-mode both with
--enable-all-targets and --target=cris.
> I also noticed that "make distclean" does not work in maintainer
> mode. I could not find a way around this problem, so instead I have
> inserted a comment into Make-in explaining what is going on.
If it can't be fixed cleanly, perhaps document it in
README-maintainer-mode.
> Comments anyone ?
> Index: Makefile.am
> + # The following target is retained for upgrade purposes.
> + # This target used to exist in older versions of this makefile, and was
> + # referenced by <builddir>/po/Makefile (which is created from <srcdir>/po/Make-in)
> + # So old versions of <builddir>/po/Makefile will try to regenerate themselves
> + # when make is next run, but that dependency cannot be completed without a build
> + # of po/POTFILES.in. Hence the presence of this rule.
> + po/POTFILES.in:
Remove this rule soon, or state a time there for its removal?
> Index: po/Make-in
> ! # Note - the following line gets processed by bfd/configure and amened
> ! # to contain the full list of source dir POTFILES.
> ! SRC-POTFILES = \
> !
> ! # Note - the following line gets processed by bfd/configure and amened
> ! # to contain the full list of build dir POTFILES.
Amended?
! --files-from=$(srcdir)/SRC-POTFILES.in \
! --files-from=$(srcdir)/BLD-POTFILES.in
Problem here. These options do not accumulate. The last
--files-from is chosen, at least with xgettext 0.10.32 and
0.10.35 (the latter shipped with RH 6.2).
Do you see the same problem, or are you using a newer xgettext?
If there's a newer xgettext where those options accumulate, that
version could be required at configure --enable-maintainer-mode time.
Anyway it seems there's the trivial solution of cat:ing those
files.
brgds, H-P