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 573
  • Win 250
  • Mac 134
  • Linux 189
Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12
Windows 0 0 0 0 1 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 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 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 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 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1

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.