forked from jpemartins/speex.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (26 loc) · 997 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
SPEEX_SRC_DIR=lib/speex-1.2rc1
CLOSURE_COMPILER_PATH=bin/closure_compiler.jar
all: bundle aurora
aurora:
cat src/libspeex.js > dist/aurora-speex.js
cat src/util.js >> dist/aurora-speex.js
cat src/types.js >> dist/aurora-speex.js
cat src/codec.js >> dist/aurora-speex.js
cat src/decoder.js >> dist/aurora-speex.js
cat src/aurora/demuxer.js >> dist/aurora-speex.js
cat src/aurora/decoder.js >> dist/aurora-speex.js
java -jar $(CLOSURE_COMPILER_PATH) --js=dist/aurora-speex.js > dist/aurora-speex.min.js
bundle:
cat src/libspeex.js > dist/speex.js
cat src/util.js >> dist/speex.js
cat src/types.js >> dist/speex.js
cat src/speex.js >> dist/speex.js
cat src/codec.js >> dist/speex.js
cat src/decoder.js >> dist/speex.js
cat src/encoder.js >> dist/speex.js
cat src/ogg.js >> dist/speex.js
java -jar $(CLOSURE_COMPILER_PATH) --js=dist/speex.js > dist/speex.min.js
java -jar $(CLOSURE_COMPILER_PATH) --js=src/ogg.js > dist/ogg.min.js
clean:
rm dist/*
.PHONY: aurora bundle