Mail Archives: djgpp/1999/08/29/16:39:20
On Fri, 27 Aug 1999, Maurice Lombardi wrote:
> SHELL = /bin/sh
>
> all:
> /bin/ginstall -c anyfile anydir ;
> ----------------------------------------
>
> If I don't put the ; at the end of the last line make fails with a message:
>
> /bin/ginstall -c anyfile anydir
> make.exe: *** [all] Error -1
>
> with the ; included it is ok.
Do you actually have ginstall.exe in the /bin directory on the current
drive?
If not, then what you see is a feature, not a bug: Bash treats
/bin/foo pathnames specially, since many Unix scripts use them
unconditionally. The semi-colon on the command line forces Make to
call the shell, and then it works. Without the semi-colon, the
command is invoked directly by Make, and then it fails because there's
no /bin/ginstall.exe.
The correct solution is to configure the package so that INSTALL is
replaced with "${DJDIR}/bin/ginstall -c". Then it will work
regardless.
- Raw text -