Re: [AD] Mingw Makefile problem under 2k

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


In reply to Henrik Stokseth <hstokset@xxxxxxxxxx>:
>how come? command.com wouldn't understand double backslashes would it? 
>and if bourne shell is installed AFAIK copy and erase will not work 
>since they are built-in commands in command.com. i do not see any easy 
>way to support bourne shell so why try? it ends up beeing ugly no matter 
>what we do.

The DJGPP makefile supports building from bash or from command.com; to
activate the `bash' mode, you have to write:

 UNIX_TOOLS=1 ./fixdjgpp.sh

You could do something similar for MinGW.

Actually, you can probably check whether make is running under bash or
under command.com by checking the SHELL environment variable:

ifneq ($(findstring bash,$(SHELL)),)
# using bash
else
# using command.com
endif

That's not very well tested, but it works on my system :-)

If you have such an automatic check, then surely you can just rewrite
the few odd lines which behave differently depending on the shell?

Bye for now,
-- 
Laurence Withers, lwithers@xxxxxxxxxx
                http://www.lwithers.demon.co.uk/

Attachment: signature.asc
Description: PGP signature



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/