Skip to content

Instantly share code, notes, and snippets.

@zakki
Created June 22, 2018 02:20
Show Gist options
  • Save zakki/462b1ca41e40409675125b2d59584a7b to your computer and use it in GitHub Desktop.
Save zakki/462b1ca41e40409675125b2d59584a7b to your computer and use it in GitHub Desktop.
Makefile SHELL and ONESHELL
$ 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