From e47ddca2f8d80145386a377fc81a738d89c46cf0 Mon Sep 17 00:00:00 2001 From: Wes Brown Date: Tue, 22 Apr 2014 12:44:26 -0400 Subject: Automatically install node modules if the directory doesn't exist. --- js/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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" > $@ -- cgit v1.2.3