- Code: Select all
{
"cmd": ["make"],
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${project_path:${folder:${file_path}}}",
"selector": "source.makefile",
"path": "/bin:/usr/local/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/texbin",
"variants":
[
{
"name": "Everything",
"cmd": ["make", "everything"]
},
{
"name": "Chapter Discussion",
"cmd": ["make", "chapter", "topic=discussion"]
},
]
}
There are a lot of other build targets as well. Each one calls make with different parameters, in order to build the whole book, single chapters, and so on. With the help of the build file above, I can call any build variant via cmd+shift+P --> "Build: xyz". That's good
Is that possible? Any help is greatly appreciated!