One alternative is to use the SHELL variable built into your makefile.
Then you are independent of what invoked it. We use SHELL=cmd.exe
because we require lame compatibility, but otherwise we also use bash
elsewhere. You can replace cmd.exe with sh.exe. We started out that
way. BenG.
Ian Hunter wrote:
>
> Question.
>
> I compute my CLASSPATH by a script in .bashrc (I'm using cygwin), but when I
> compile, the CLASSPATH being used is the NT system CLASSPATH.
>
> Is there a way of controlling the compile shell to run .bashrc or to use
> bash env. vars.
>
> This is also a problem for me because when I run make, it runs make in the
> same directory as the source file, whereas my Makefile is in a project root
> directory.
>
> Many Thanks for any help
>
> Ian Hunter
--
Ben Groeneveld
@Work Technologies, Inc., 775 Lindsay Blvd., Idaho Falls, ID 83402
Mailto:[EMAIL PROTECTED], phone:208.529.2640, fax:208.522.4202