Skip to content

vscode extension for running makefiles from within the editor

Notifications You must be signed in to change notification settings

twoframesperminute/vscode-makefile-term

 
 

Repository files navigation

vscode-makefile-term

This extension allows you to run a Makefile target from within the editor by clicking above the target. It will execute the following command in the terminal:

cd ${makefileDir}; make -f ${filename} ${target}
  • makefileDir - the directory of the Makefile that is being edited
  • filename - file where you clicked the TARGET
  • target - the text found using the following logic:
    • any line starting with an alphabeticnumeric string followed by a colon and not including =

Features

screenshot

Requirements

  • Tested on vscode 1.65.0

Extension Settings

See package.json for available settings.

  • vscode-makefile-term.enabled

Known Issues

  • Can increase performance with a cache
  • Can make extension more adaptable by allowing changing configurable:
    • command that is execute
    • text that is displayed above target

Release Notes

0.0.1

  • initial working functionality

0.0.2

  • target with = are ignored
  • make uses -f to specify filename

0.0.3

  • minor text corrections

0.0.4

  • added keybidining to run again (Ctrl+Shift+x by default)
  • ignore lines with = as cannot be target

Contributing

Feedback and pull requests are welcomed.

Following extension guidelines

Ensure that you've read through the extensions guidelines and follow the best practices for creating extensions.

About

vscode extension for running makefiles from within the editor

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 85.9%
  • Makefile 14.1%