diff options
| author | Wes Brown <wesbrown18@gmail.com> | 2014-04-22 12:44:26 -0400 |
|---|---|---|
| committer | Wes Brown <wesbrown18@gmail.com> | 2014-04-22 12:44:26 -0400 |
| commit | e47ddca2f8d80145386a377fc81a738d89c46cf0 (patch) | |
| tree | ef64ca33efd4480f545cc315f9eff69c6c66d38f | |
| parent | 4cd292622440ab01fd9b4765aba978b81dfc5fc7 (diff) | |
| download | mal-e47ddca2f8d80145386a377fc81a738d89c46cf0.tar.gz mal-e47ddca2f8d80145386a377fc81a738d89c46cf0.zip | |
Automatically install node modules if the directory doesn't exist.
| -rw-r--r-- | js/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/js/Makefile b/js/Makefile index 36b9caa..87afef1 100644 --- a/js/Makefile +++ b/js/Makefile @@ -6,7 +6,10 @@ SOURCES_LISP = env.js core.js stepA_more.js SOURCES = $(SOURCES_BASE) $(SOURCES_LISP) WEB_SOURCES = $(SOURCES:node_readline.js=josh_readline.js) -all: mal.js mal_web.js +all: node_modules mal.js mal_web.js + +node_modules: + npm install mal.js: $(SOURCES) echo "#!/usr/bin/env node" > $@ |
