Mail Archives: djgpp-workers/2000/04/28/17:59:09
> Date: Thu, 27 Apr 2000 21:44:29 +0100
> From: Richard Dawe <richdawe AT bigfoot DOT com>
>
> Eli Zaretskii wrote:
> > No, the top-level Makefile is `Makefile'. If you have run the
> > configure script, it should have created `Makefile' in the top-level
> > directory (as well as in subdirectories).
>
> Yep, it has - I'm running Linux right now, but here it is:
>
> iolanthe:/shared/develop/ports/gnu/filutil4.0 =] ls -al *akefile
> -rwxrwxr-x 1 root dosusers 676 Apr 27 10:13 GNUmakefile*
> -rwxrwxr-x 1 root dosusers 11832 Apr 27 10:15 Makefile*
>
> > When Make is run by just typing "make [Enter]", it defaults to
> > `Makefile', and only if `Makefile' doesn't exist (and if it's GNU Make),
> > does it turn to `GNUmakefile'.
>
> Well, it seems to be using 'GNUmakefile' for me. When I just type 'make'
> it uses GNUmakefile. I have to force 'Makefile' to be used using 'make -f
> Makefile'. This happens with make 3.77 and make 3.79.
Sorry, you are right. I simply forgot how this is set up.
The problem _is_ the missing "SHELL=/bin/sh" in GNUmakefile. If you
put it there, it will all begin to work when you say "make".
You will see that GNUmakefile, when it finds a Makefile, simply
includes it and runs it. It didn't work for you because $(shell)
invoked COMMAND.COM, and therefore failed to set have-Makefile to
"yes".
> > Getting that right in the mainline sources would clutter them with
> > endless #ifdef's, which no GNU maintainer in their right mind would
> > accept.
>
> I couldn't really blame them for that. fileutils does seem a little more
> DJGPP-aware now, at least in uid, gid handling - there are some '#ifdef
> __DJGPP__'s scattered around.
Please try to minimize them. Some of them might not be necessary
anymore, due to features we now have in DJGPP. As for others, there
might be ways of producing the same effect that pollute the sources
less.
The less changes there will be in the mainline sources, the easier it
will be for Jim Meyering, who maintains Fileutils, to accept them.
> If things go well, I may have an alpha version out this weekend.
Great!
- Raw text -