How to call .sh file from makefile.am?

I have used $(shell ./doEcho.sh) and also tried bin_SCRIPTS = doEcho.sh but it is not working it is compiling but not executing.
I have kept mkdir filename in doEcho.sh

It wouldn't be possible to assess that without seeing more of the makefile please.

$(shell ...) should ordinarily just work. Also, you are sure the script is chmod +x right?

In addition to what dryden already said: what makes you think that the current directory is in fact what you believe it to be?

It is always problematic to use relative pathes in scripts because you never can be sure from where the script is called.

I hope this helps.

bakunin