ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Make​Targets

by dusk125 ST3

Automatically have all of your Makefile targets available as build variants.

Labels make, makefile, target

Details

Installs

  • Total 556
  • Win 242
  • Mac 132
  • Linux 182
Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
Mac 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Make Targets

Make Targets was created to allow Sublime Text to run more than the 'Make' and 'Make Clean' Make targets. It does this by scanning a projects Makefile and figuring out the various targets, making them available as variants of the 'MakeTargets' build system.

Installation

Git Clone

First, find out where the packages directory is by going to (Preferences->Browse Packages), use that location in the git clone command.

Package Control

Install from Package Control coming soon.

Usage

Select 'MakeTargets' as your build system and start a build like normal.

Using the 'Build With' command (ctrl+shift+b by default), you can change the Make target that will run on subsequient 'Build' (ctrl+b) commands; MakeTargets will remember the last target you ran!

The 'MakeTargets' command is also available from the Command Palette.

Available Commands

{'command': 'make_targets', 'args': see below}

Available Arguments

All arguments are optional and have reasonable defaults.

  • working_dir

Where to build from.

Defaults to the expansion of '${folder:${project_path:${file_path}}}'. * file_regex

The regex the build system looks for errors.

Defaults to '^(..[^:\n]*):([0-9]+):?([0-9]+)?:? (.*)'. * syntax

The syntax to use for the output panel.

Defaults to 'Packages/Makefile/Make Output.sublime-syntax'. * make_target

The target to make, can be an empty string or None.