5 archived: This sheet may be listing practices that are outdated.
11 bin := ./node_modules/.bin
15 build/%.js: src/%.coffee
16 @$(bin)/coffee < $^ > $@
19 ### Stylus + Autoprefixer
21 bin := ./node_modules/.bin
22 stylus := $(bin)/stylus
23 autoprefixer := $(bin)/autoprefixer
24 styl_files := $(shell find web/ -name "*.styl")
28 public/app.css: css/app.styl
30 %.css: %.styl $(styl_files)
31 @$(stylus) $< | $(autoprefixer) -b "> 1%" > $@
41 @echo "... watching for changes"
42 @while true; do make -s; sleep 1; done
46 js_files := $(shell find web/ -name "*.js")
48 public/app.js: web/app.js
49 public/vendor.js: web/vendor.js
51 public/%.js: web/%.js $(js_files)
52 $(browserify) -t [ cssify -x .css ] $< > $@