X-Git-Url: https://jasonwoof.com/gitweb/?p=peach-html5-editor.git;a=blobdiff_plain;f=Makefile;h=3c4cdd22a007d0c4bf1d47fd11c9945eace0ffca;hp=24c826c84f497ff5abebd95da6e68ac6d20ac2af;hb=304ed69c871ccb27353b213816617fd8ea328ef7;hpb=cc2911623e5e9a50e19ae8233a990c2e633c218e diff --git a/Makefile b/Makefile index 24c826c..3c4cdd2 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,12 @@ -all: parse-html.js +OBJECTS= parser.js parser_tests.js parser_no_browser_helper.js editor.js editor_tests.js page_dark.css -parse-html.js: parse-html.coffee - coffee -c $< +all: $(OBJECTS) + +%.js: %.coffee + coffee -c $< && sed -i -e 's/\(parser\|parser_no_browser_helper\)[.]coffee/\1.js/g' $@ + +%.css: %.styl + stylus $< + +clean: + rm -f $(OBJECTS)