From 9d2ac2c1326fbac091e98b9ddd96771a6c13b938 Mon Sep 17 00:00:00 2001 From: Emily Eisenberg Date: Tue, 9 Jul 2013 00:09:01 -0700 Subject: [PATCH] Make the makefile better Auditors: spicyj --- Makefile | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/Makefile b/Makefile index 80c8fd7..af25b1c 100644 --- a/Makefile +++ b/Makefile @@ -1,18 +1,16 @@ -FILES=parser.js style.css build.js index.html +.PHONY: build copy serve clean +build: build/MJLite.js -.PHONY: build ship copy serve -build: parser.js - -ship: build - scp $(FILES) prgmr:/var/www/www.rampancylabs.com/parser/ +build/MJLite.js: MJLite.js parser.jison lexer.js + ./node_modules/.bin/browserify $< --standalone MJLite -t ./jisonify > $@ copy: build - cp parser.js ../exercises/utils/mjlite-parser.js - cp MJLite.js ../exercises/utils/MJLite.js - cp style.js ../exercises/css/mjlite.css - -parser.js: parser.jison - ./node_modules/.bin/jison parser.jison + cp build/MJLite.js ../exercises/utils/MJLite.js + cp static/style.css ../exercises/css/mjlite.css + cp -R static/fonts ../exercises/css/ serve: node server.js + +clean: + rm -rf build/*