Skip to content

Instantly share code, notes, and snippets.

@pwmcintyre
Created January 1, 2020 22:32
Show Gist options
  • Save pwmcintyre/64740c4d9fde2a3efcfd2682733b4a69 to your computer and use it in GitHub Desktop.
Save pwmcintyre/64740c4d9fde2a3efcfd2682733b4a69 to your computer and use it in GitHub Desktop.
nodejs makefile
SHELL := node
.SHELLFLAGS = -e
.ONESHELL: example
.SILENT: example
example:
const foo = "bar"
console.log( "success", { foo } )
@TheKnarf
Copy link

I wanted to try and do something like this, but seems like since I have the following version GNU Make 3.81 it doesn't support overriding the .SHELLFLAGS variable and will always send -c instead of -e, so this doesn't work for me. Just to let anyone else who lands on this page know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment