-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
56 lines (47 loc) · 1.32 KB
/
Makefile
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# See the README for installation instructions.
UGLIFY = node_modules/.bin/uglifyjs
BROWSERIFY = node_modules/.bin/browserify
all: \
$(shell mkdir -p dist) \
dist/prose.js \
dist/prose.min.js
clean:
rm -f dist/*
TEMPLATES = $(shell find templates -type f -name '*.html')
dist/templates.js: $(TEMPLATES)
node build.js
LIBS = \
src/libs/codemirror/codemirror.js \
src/libs/codemirror/overlay.js \
src/libs/codemirror/htmlmixed.js \
src/libs/codemirror/clike.js \
src/libs/codemirror/yaml.js \
src/libs/codemirror/ruby.js \
src/libs/codemirror/markdown.js \
src/libs/codemirror/xml.js \
src/libs/codemirror/javascript.js \
src/libs/codemirror/css.js \
src/libs/codemirror/gfm.js \
src/libs/liquid.js \
src/libs/liquid.patch.js
APPLICATION = \
src/prose/views/notification.js \
src/prose/views/post.js \
src/prose/views/posts.js \
src/prose/views/profile.js \
src/prose/views/preview.js \
src/prose/views/start.js \
src/prose/views/app.js \
src/prose/router.js \
src/prose/util.js \
src/prose/boot.js \
dist/templates.js \
src/prose/models.js \
src/prose/cookie.js \
src/libs/github.js
dist/prose.js: $(APPLICATION) $(LIBS) dist/templates.js
cat $(LIBS) > dist/prose.js
$(BROWSERIFY) src/prose/boot.js >> dist/prose.js
dist/prose.min.js: dist/prose.js
$(UGLIFY) dist/prose.js > dist/prose.min.js
.PHONY: clean