script and makefile

I’m trying to run a script via a makefile. I’m doing it via ksh (since make
can’t exec script file).

Everything works ok but it seems make/ksh are not dealing with error
properly. If I edit the makefile to something like:

rules: bla
ksh -c asdf

asdf dsn’t exists, I’m expecting the makefile to abort on the error, but
it’s not?. It seems ksh doens’t return the error status. But if I run
ksh -c asdf manually and look at $? it 1 on error and 0 when there is no
error, just as expected. So why isn’t make aborting?


  • Mario