This is a script to recursively search for a Makefile deep in a project, and execute the first one that is found. Designed to be used in sublime_text build script:
{
"shell_cmd": "~/search_make.sh rsync"
}
Can also be used directly from command line as a replacement for Make:
alias make='~/search_make.sh'
To install the latest verison of this script simply do:
curl -sL "https://gist.githubusercontent.com/YarekTyshchenko/2a0c2612339b32f5cf4f5df056a5e156/raw/search_make.sh" > ~/search_make.sh
chmod +x ~/search_make.sh
alias smake='~/search_make.sh'
I managed to squeese the script into actual ST build system file, This is relatively experimental, I would still recommend you use the search_make.sh invoked from the build system, but This is easier to distribute.
To install go to Tools
> Build System
> New Build System...
Paste the contents of dce.sublime-build
from here into the editor, and save the file as dce.sublime-build
.
Now you if you select that build system for any file in any DCE project and hit ⌘B for Rsync, and ⌘⇧B for a drop down selection of make build
and make start