How to force my build target to be optional?
My sublime build on my .sublime-project file is like this:
{
"working_dir": "$project_path/source",
"name": "Build Main file",
"cmd": ["sh", "make_run.sh", "main"],
"target": "ansi_color_build",
}
However, if someone forks my project and open it with Sublime Text, and does not have the package ANSIescape installed (the "target": "ansi_color_build"), I would like to it be ignored instead of not build anything at all and throw the error on the Sublime Text console:
Unable to find target command: ansi_color_build