forked from olivernn/davis.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (25 loc) · 588 Bytes
/
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
SRC = lib/davis.js \
lib/davis.utils.js \
lib/davis.listener.js \
lib/davis.event.js \
lib/davis.logger.js \
lib/davis.route.js \
lib/davis.router.js \
lib/davis.history.js \
lib/davis.location.js \
lib/davis.request.js \
lib/davis.app.js
VERSION = $(shell cat VERSION)
all: davis.js davis.min.js docs
davis.js: $(SRC)
cat $^ | \
sed "s/@VERSION/${VERSION}/" > $@
davis.min.js: davis.js
uglifyjs < $< > $@
docs:
dox < davis.js | dox-template -n Davis.js -r ${VERSION} > docs/index.html
clean:
rm -f davis{.min,}.js
test:
@node server 4000
.PHONY: test clean docs