Sublime Forum

Where are the included build systems stored?

#1

I want to make a slight modification to the make build system (to add a run variant). Where are the included build systems stored in Sublime Text 3?

0 Likes

#2

Like most resources in Sublime, sublime-build files are stored inside of packages; the ones you create yourself are stored in your User package while the ones that ship with Sublime are stored in the package that supplies them.

Without going into a ton of detail (more information in this video on demystifying packages if you want it, though) the build systems that ship with Sublime are in package files that you shouldn’t directly modify.

As such the easiest thing to do would be to use View Package File from the command palette and enter a filter like make build to find and select the Makefile/Make.sublime-build file, which will open a read-only copy. You can then copy that text and paste it into a new build system created via Tools > Build System > New Build System and make your modifications there.

Build systems in the build system menu are named based on their file name, so you should name your file something that lets you know that it’s yours, then either select it in Tools > Build System directly, or choose yours when Sublime prompts you.

If you would rather modify the version that ships with Sublime directly, I would recommend (though I am biased because I’m the author) installing the OverrideAudit package and choosing OverrideAudit: Create Override from the command palette, then select the Makefile package and the Make.sublime-build file and make your changes and save them.

0 Likes

#3

Thank you! I will try the package.

0 Likes