Skip to content

Instantly share code, notes, and snippets.

@meganukebmp
Created January 23, 2022 21:03
Show Gist options
  • Save meganukebmp/1eafcfe7022fd52c947caaf164e474f0 to your computer and use it in GitHub Desktop.
Save meganukebmp/1eafcfe7022fd52c947caaf164e474f0 to your computer and use it in GitHub Desktop.
A Sublime Text build system integrating MINGW on Windows
{
"shell_cmd": "C:\\msys64\\usr\\bin\\env MSYSTEM=MINGW64 c:\\msys64\\usr\\bin\\bash -l -c \"cd \\$(cygpath -u '${folder:${project_path:${file_path}}}') && make\"",
"file_regex": "^(..[^:\n]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${folder:${project_path:${file_path}}}",
"selector": "source.makefile",
"syntax": "Packages/Makefile/Make Output.sublime-syntax",
"keyfiles": ["Makefile", "makefile"],
"variants":
[
{
"name": "Clean",
"shell_cmd": "C:\\msys64\\usr\\bin\\env MSYSTEM=MINGW64 c:\\msys64\\usr\\bin\\bash -l -c \"cd \\$(cygpath -u '${folder:${project_path:${file_path}}}') && make clean\"",
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment