-
-
Save arsperger/fbcdae8d6080cc655131bcb2861d864e to your computer and use it in GitHub Desktop.
VSCode tasks for running a Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Makefile | |
// ${workspaceRoot} the path of the folder opened in VS Code | |
// ${file} the current opened file | |
// ${fileBasename} the current opened file's basename | |
// ${fileDirname} the current opened file's dirname | |
// ${fileExtname} the current opened file's extension | |
// ${cwd} the task runner's current working directory on startup | |
{ | |
"version": "0.1.0", | |
"command": "bash", | |
"isShellCommand": true, | |
"showOutput": "always", | |
"options": { | |
"cwd": "${workspaceRoot}" | |
}, | |
"args": [ | |
"-c" | |
], | |
"tasks": [ | |
{ | |
"taskName": "build", | |
"suppressTaskName": true, | |
"isBuildCommand": true, | |
"args": ["make build"] | |
}, | |
{ | |
"taskName": "test", | |
"suppressTaskName": true, | |
"isTestCommand": true, | |
"args": ["make test"] | |
}, | |
{ | |
"taskName": "deploy", | |
"suppressTaskName": true, | |
"args": ["make deploy"] | |
}, | |
{ | |
"taskName": "help", | |
"suppressTaskName": true, | |
"args": ["make help"] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment