Created
January 1, 2020 22:32
-
-
Save pwmcintyre/64740c4d9fde2a3efcfd2682733b4a69 to your computer and use it in GitHub Desktop.
nodejs 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
SHELL := node | |
.SHELLFLAGS = -e | |
.ONESHELL: example | |
.SILENT: example | |
example: | |
const foo = "bar" | |
console.log( "success", { foo } ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.