$cat make.bat set PATH=cygwin_Path;oldPath make %* $ cat /tmp/Makefile
export TEST_FLAG=test SHELL=/bin/bash test : <tab> printf "$${TEST_FLAG}\n" test2 : <tab> printf "${TEST_FLAG}\n" test3 : <tab> printf "$${ENV_VAR1}\n" test4 : <tab> printf "${ENV_VAR1}\n" test5 : <tab> ENV_VAR1=${ENV_VAR1}; /bin/bash somescriptthatdoprintfenv_var1 $ export ENV_VAR1=fromtheenv ----- cygwin env (make is called throught a .bat file) ----- $ make.bat test <empty line> $ make.bat test2 test $make.bat test3 <empty line> $make.bat test4 fromtheenv $make.bat test5 fromtheenv ------ from an interactive shell, cygwin env ---- $make test test $make test2 test $make test3 fromtheenv $make test4 fromtheenv $make test5 fromtheenv ------- linux ------ always working to make it short : if you call the subshell by setting the env variable on the same line it will ever work if you try to access some env variable in the makefile it always work if you try to use the env variable into one of the command it fails depending on the context..... Best Regards JLM On Mon, Nov 30, 2009 at 8:22 PM, Martin Dorey <mdo...@bluearc.com> wrote: > Can you contrive a simple test case - something that you can post here in its > entirety to help someone reproduce the problem? > > -----Original Message----- > From: bug-make-bounces+mdorey=bluearc....@gnu.org > [mailto:bug-make-bounces+mdorey=bluearc....@gnu.org] On Behalf Of jean-luc > malet > Sent: Monday, November 30, 2009 10:27 > To: bug-make > Subject: not a bug but some strange behaviour > > Hi! > I have a cygwin environment in which I've written a makefile, in this > environment it's working fine > I want to make it available to other dos user, so I've written a bat > file that set the cygwin path and call make, > in the doc env when I do > echo %somevar% > I see the correct result > however in commands launched by make (shell scripts) the ${somevar} > expand to nothing... as if make was stripping the env.... > any idea? > thanks > JLM > > -- > KISS! (Keep It Simple, Stupid!) > (garde le simple, imbécile!) > "mais qu'est-ce que tu m'as pondu comme usine à gaz? fait des choses > simples et qui marchent, espèce d'imbécile!" > ----------------------------- > "Si vous pensez que vous êtes trop petit pour changer quoique ce soit, > essayez donc de dormir avec un moustique dans votre chambre." Betty > Reese > http://www.grainesdechangement.com/citations.htm > > > _______________________________________________ > Bug-make mailing list > Bug-make@gnu.org > http://lists.gnu.org/mailman/listinfo/bug-make > -- KISS! (Keep It Simple, Stupid!) (garde le simple, imbécile!) "mais qu'est-ce que tu m'as pondu comme usine à gaz? fait des choses simples et qui marchent, espèce d'imbécile!" ----------------------------- "Si vous pensez que vous êtes trop petit pour changer quoique ce soit, essayez donc de dormir avec un moustique dans votre chambre." Betty Reese http://www.grainesdechangement.com/citations.htm _______________________________________________ Bug-make mailing list Bug-make@gnu.org http://lists.gnu.org/mailman/listinfo/bug-make