<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi everyone,</div><div><br></div><div>I want to set a command to run a makefile to build</div><div>a CUDA, and run it from the Debug/ folder. However</div><div>I hate hardcoding the name of the executable, is it possible</div><div>to use a variable that depends on the file I'm standing on</div><div>or the name of the director from which make is being executed</div><div><br></div><div>Also, I would like to make an alternate command with which I </div><div>can tell make what target to execute.</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; color: rgb(196, 26, 22); "><span style="color: rgb(0, 0, 0); ">. </span>"$TM_SUPPORT_PATH/lib/webpreview.sh"</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; color: rgb(196, 26, 22); "><span style="color: rgb(0, 0, 0); ">html_header </span>"Running make"</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">make ${TM_MAKE_FLAGS} <span style="color: rgb(28, 0, 207); ">2</span>>&<span style="color: rgb(28, 0, 207); ">1</span>|<span style="color: rgb(196, 26, 22); ">"${TM_RUBY:-ruby}"</span> -rtm_parser -eTextMate.parse_errors</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">Debug/Sum <span style="color: rgb(28, 0, 207); ">2</span>>&<span style="color: rgb(28, 0, 207); ">1</span>|<span style="color: rgb(196, 26, 22); ">"${TM_RUBY:-ruby}"</span> -rtm_parser -eTextMate.parse_errors</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; color: rgb(196, 26, 22); "><span style="color: rgb(0, 0, 0); ">echo </span>"Done."</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">html_footer</div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;"><br></span></font></div></div><div>Any help appreciated,</div><div>Ted</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; color: rgb(196, 26, 22); "><font class="Apple-style-span" color="#000000"><br></font></div></div></body></html>