www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 9d2ac2c1326fbac091e98b9ddd96771a6c13b938
parent d5c2a6fb38447c9af9c8f7ac1376a4700b4d2219
Author: Emily Eisenberg <xymostech@gmail.com>
Date:   Tue,  9 Jul 2013 00:09:01 -0700

Make the makefile better

Auditors: spicyj

Diffstat:
MMakefile | 22++++++++++------------
1 file changed, 10 insertions(+), 12 deletions(-)

diff --git 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/*