forked from spsdco/notes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (23 loc) · 694 Bytes
/
Makefile
File metadata and controls
34 lines (23 loc) · 694 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
node_bin = ./node_modules/.bin
spsd = app/init.coffee
atom = $(wildcard src/*.coffee)
css = css/new.scss
spsd_out = public/application.js
atom_out = $(atom:%.coffee=%.js)
css_out = public/application.css
all: npm build-atom handlebars style build-app
build-atom: $(atom_out)
src/%.js: src/%.coffee
@$(node_bin)/coffee -bc $<
build-app: $(spsd_out)
$(spsd_out): $(spsd)
@$(node_bin)/browserify -t coffeeify $< > $@
handlebars:
@$(node_bin)/handlebars app/views/note.handlebars -f app/views/note.js
@$(node_bin)/handlebars app/views/notebook.handlebars -f app/views/notebook.js
style:
@sass $(css) $(css_out)
npm:
@npm install .
clean:
@rm -f $(spsd_out) $(atom_out) $(css_out)