I am doing the following inside a make file
pushd %dir_name%
and i get the following error
/bin/sh : pushd : not foun
Your shell (/bin/sh) is trying to find 'pushd'. But it can't find it because 'pushd','popd' and other commands like that are build in bash.
Launch you script using Bash (/bin/bash) instead of Sh like you are doing now, and it will work