Created
June 22, 2018 02:20
-
-
Save zakki/462b1ca41e40409675125b2d59584a7b to your computer and use it in GitHub Desktop.
Makefile SHELL and ONESHELL
This file contains hidden or 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
$ cat Makefile | |
.ONESHELL: | |
SHELL = node | |
.SHELLFLAGS = -e | |
runjs : | |
@let fun = (v) => v * 2 | |
console.log([1, 2, 3, 4].map(fun)) | |
$ make runjs | |
[ 2, 4, 6, 8 ] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment