Sublime Forum

Configuring make

#1

Hey folks,

I recently discovered this awesome editor and am now trying to bend it to my wishes, with mixed success.

I just got CTags working(yay!) and am currently I’m wondering how to tell the build system where to look for my makefile. I need this to be project-specific. I looked a bit at the documentation but that was mainly around setting up new build systems, I just need to configure an existing one.

0 Likes

#2

I just set up an almost copy and pasted version for each project. I usually have several different builds per project though depending on target platform among other parameters.

0 Likes

#3

Aha, how do they look like and how do you use them?

I’m thinking of trying to achieve something alone the lines of a IDE, one build for release and one for debugging with a menu or something to easily switch between them.

0 Likes

#4

Like this for example:

[code] “build_systems”:

    {
        "name": "Mango Android",
        "cmd": "make", "-j3"],
        "file_regex": "^(..^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
        "working_dir": "${project_path}/build-android"
    },
    {
        "name": "Mango OSX",
        "cmd": "make", "-j3"],
        "file_regex": "^(..^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
        "working_dir": "${project_path}/build"
    }
],

[/code]

0 Likes