-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (21 loc) · 713 Bytes
/
Makefile
File metadata and controls
30 lines (21 loc) · 713 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
DEBUG_FILES = dcdn.js coordination_server.js
MINIFIED_FILES = dcdn.min.js coordination_server.min.js
UGLIFY_CMD = node_modules/uglify-js/bin/uglifyjs
LINT_CMD = node_modules/jshint/bin/jshint
all : $(MINIFIED_FILES)
dcdn.js : src/dcdn.js
cat $^ > $@
coordination_server.js : src/coordination_server.js node_modules/
cat $< > $@
%.min.js : %.js node_modules/
$(LINT_CMD) $<
node_modules/uglify-js/bin/uglifyjs $< > $@
debug : $(DEBUG_FILES)
examples : debug examples/webserver.js node_modules/
# Examples available at: http://localhost:8080/examples/
node examples/webserver.js &
node coordination_server.js
node_modules/ : package.json
npm install
clean :
rm -f $(DEBUG_FILES) $(MINIFIED_FILES)