|
@@ -13,7 +13,7 @@
|
|
|
"label": "control shift B",
|
|
|
"type": "shell",
|
|
|
// displays time stamp of executable in directory
|
|
|
- "command": "ls ${fileBasenameNoExtension}/${fileBasenameNoExtension}.exe |tail -n3 |head -1",
|
|
|
+ "command": "cd ${relativeFileDirname}; ls ${fileBasenameNoExtension}/${fileBasenameNoExtension}.exe |tail -n3 |head -1",
|
|
|
"dependsOn": ["default run executable"],
|
|
|
"group": {"kind": "build","isDefault": true}
|
|
|
},
|
|
@@ -21,25 +21,25 @@
|
|
|
"label": "overwritten",
|
|
|
"type": "shell",
|
|
|
// delete current executable so it can be overwritten with new one
|
|
|
- "command": "make clean f=${fileBasenameNoExtension}.exe",
|
|
|
+ "command": "make clean p=${relativeFileDirname} f=${fileBasenameNoExtension}.exe",
|
|
|
"dependsOn": ["default directory"]
|
|
|
},
|
|
|
{
|
|
|
"label": "default compile",
|
|
|
"type": "shell",
|
|
|
- "command": "make ${fileBasenameNoExtension}.exe",
|
|
|
+ "command": "make p=${relativeFileDirname} ${fileBasenameNoExtension}.exe",
|
|
|
"dependsOn": ["overwritten"]
|
|
|
},
|
|
|
{
|
|
|
"label": "default run executable",
|
|
|
"type": "shell",
|
|
|
- "command": "${fileBasenameNoExtension}/${fileBasenameNoExtension}.exe",
|
|
|
+ "command": "cd ${relativeFileDirname}; ${fileBasenameNoExtension}/${fileBasenameNoExtension}.exe",
|
|
|
"dependsOn": ["default compile"]
|
|
|
},
|
|
|
{
|
|
|
"label": "default directory",
|
|
|
"windows" : {
|
|
|
- "command": "$(test-path ${fileBasenameNoExtension}) -or $(mkdir ${fileBasenameNoExtension}) >$null"
|
|
|
+ "command": "$(cd ${relativeFileDirname}; test-path ${fileBasenameNoExtension}) -or $(mkdir ${fileBasenameNoExtension}) >$null"
|
|
|
},
|
|
|
"type": "shell",
|
|
|
"presentation" : {
|