[Freeciv-Dev] Re: gettext 0.10.37
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Sunday 20 May 2001 12:48, Gaute B Strokkenes wrote:
> On 20 May 2001, gs234@xxxxxxxxx wrote:
> > On Sun, 20 May 2001, thue@xxxxxxx wrote:
> >> Ok, this is what happens. aclocal.m4 says
> >> dnl intl/plural.c is generated from intl/plural.y. It requires
> >> bison, dnl because plural.y uses bison specific features. It
> >> requires at least dnl bison-1.26 because earlier versions
> >> generate a plural.c that doesn't dnl compile. dnl bison is
> >> only needed for the maintainer (who touches plural.y). But in
> >> dnl order to avoid separate Makefiles or
> >> --enable-maintainer-mode, we put dnl the rule in general
> >> Makefile. Now, some people carelessly touch the dnl files or
> >> have a broken "make" program, hence the plural.c rule will dnl
> >> sometimes fire. To avoid an error, defines BISON to ":" if it
> >> is not dnl present or too old.
> >>
> >> This is ok, just require us to generate plural.c once. What is
> >> less fortunate is that make distclean removes the file plural.c.
> >> Since I think people "make distclean" once in a while people will
> >> meet this problem, and so it would be nice if the build didn't
> >> fail.
>
> As far as I can see, the distclean target in the intl/ directory is a
> no-op in Freeciv.
Not a no-op, it depends on "clean".
It turns out plural.c isn't deleted but distclean, but the following happens:
------------------
bash-2.05$ rm intl/plural.o
bash-2.05$ make
[...]
Making all in intl
make[2]: Entering directory `/mnt/data/freeciv-dev/gettext7/intl'
bison -y -d --name-prefix=__gettext --output plural.c plural.y
conflicts: 7 shift/reduce
rm -f plural.h
gcc -c -DLOCALEDIR=\"/home/thue/install/share/locale\"
-DLOCALE_ALIAS_PATH=\"/home/thue/install/share/locale\"
-DLIBDIR=\"/home/thue/install/lib\" -DHAVE_CONFIG_H -I.. -I. -I../intl -g
-O2 -Wall plural.c
rm -f libintl.a
ar cru libintl.a intl-compat.o bindtextdom.o dcgettext.o dgettext.o gettext.o
finddomain.o loadmsgcat.o localealias.o textdomain.o l10nflist.o
explodename.o dcigettext.o dcngettext.o dngettext.o ngettext.o plural.o
localcharset.o
ranlib libintl.a
rm plural.c
make[2]: Leaving directory `/mnt/data/freeciv-dev/gettext7/intl'
-------------------
Note the "rm plural.c"
Still investigating...
-Thue
- [Freeciv-Dev] Re: gettext 0.10.37, (continued)
- [Freeciv-Dev] Re: gettext 0.10.37, Gaute B Strokkenes, 2001/05/19
- [Freeciv-Dev] Re: gettext 0.10.37, Thue, 2001/05/19
- [Freeciv-Dev] Re: gettext 0.10.37, Gaute B Strokkenes, 2001/05/20
- [Freeciv-Dev] Re: gettext 0.10.37, Gaute B Strokkenes, 2001/05/20
- [Freeciv-Dev] Re: gettext 0.10.37, Thue, 2001/05/20
- [Freeciv-Dev] Re: gettext 0.10.37, Gaute B Strokkenes, 2001/05/20
- [Freeciv-Dev] Re: gettext 0.10.37, Thue, 2001/05/20
- [Freeciv-Dev] Re: gettext 0.10.37, Thue, 2001/05/20
- [Freeciv-Dev] Re: gettext 0.10.37, Gaute B Strokkenes, 2001/05/20
- [Freeciv-Dev] Re: gettext 0.10.37, Gaute B Strokkenes, 2001/05/20
- [Freeciv-Dev] Re: gettext 0.10.37,
Thue <=
- [Freeciv-Dev] Re: gettext 0.10.37, Gaute B Strokkenes, 2001/05/20
|
|