-
Notifications
You must be signed in to change notification settings - Fork 32
/
Makefile
53 lines (46 loc) · 1.05 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
JS_COMPILER = ./node_modules/uglify-js/bin/uglifyjs
all: rserve.js rserve.min.js main.js
main.js: \
src/_begin.js \
src/_begin_node.js \
src/robj.js \
src/rsrv.js \
src/parse.js \
src/endian_aware_dataview.js \
src/rserve.js \
src/error.js \
src/write.js \
src/_end.js \
src/_end_node.js
rserve.js: \
src/_begin.js \
src/robj.js \
src/rsrv.js \
src/parse.js \
src/endian_aware_dataview.js \
src/rserve.js \
src/error.js \
src/write.js \
src/_end.js
rserve.min.js: rserve.js Makefile
@rm -f $@
$(JS_COMPILER) < $< > $@
chmod -w $@
rserve.js: Makefile
echo $^
@rm -f $@
cat $(filter %.js,$^) > $@
ifeq ($(CHECK),1)
jshint $(filter %.js,$(filter-out lib/%.js,$(filter-out %/_begin.js,$(filter-out %/_end.js, $^))))
endif
chmod -w $@
main.js: Makefile
echo $^
@rm -f $@
cat $(filter %.js,$^) > $@
ifeq ($(CHECK),1)
jshint $(filter %.js,$(filter-out lib/%.js,$(filter-out %/_begin.js,$(filter-out %/_end.js, $^))))
endif
chmod -w $@
clean:
rm -f rserve.js rserve.min.js main.js