3 hljs_languages: [makefile]
9 bin := ./node_modules/.bin
13 build/%.js: src/%.coffee
14 @$(bin)/coffee < $^ > $@
17 ## Stylus + Autoprefixer
19 bin := ./node_modules/.bin
20 stylus := $(bin)/stylus
21 autoprefixer := $(bin)/autoprefixer
22 styl_files := $(shell find web/ -name "*.styl")
26 public/app.css: css/app.styl
28 %.css: %.styl $(styl_files)
29 @$(stylus) $< | $(autoprefixer) -b "> 1%" > $@
39 @echo "... watching for changes"
40 @while true; do make -s; sleep 1; done
44 js_files := $(shell find web/ -name "*.js")
46 public/app.js: web/app.js
47 public/vendor.js: web/vendor.js
49 public/%.js: web/%.js $(js_files)
50 $(browserify) -t [ cssify -x .css ] $< > $@