Re: [AD] A minor inconvinience (is it spelled right ?) |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
> Actually, it seems make.exe detects /bin/sh.exe from my msys
> instalation and uses echo command from that shell - not considering
> UNIX_TOOLS is undefined ...
Yes, GNU make is configured to use sh as its shell as soon as it finds it.
> We should make UNIX_TOOLS autodetection (perhaps detect MSYS version
> of make and assume UNIX_TOOLS=1 ?)
Yes, The Right Solution(tm).
> can we check for shell make process will be using at runtime?
>
> like this:
>
> if $(SHELL) == "/bin/sh.exe"
> UNIX_TOOLS=1
> endif
What about the more general
ifneq (,$(findstring sh.exe,$(SHELL)))
UNIX_TOOLS = 1
endif
?
--
Eric Botcazou