-
Notifications
You must be signed in to change notification settings - Fork 23
/
Makefile
40 lines (29 loc) · 825 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
35
36
37
38
39
40
IN := src/main.js src/event-emitter.js src/core/*.js src/sinks/*.js src/utils/*.js src/extra/*.js
OUT := sink.js
DOCS := DOCS.md
BUILD := ./build
LIGHT_IN := src/main.js src/event-emitter.js src/core/*.js src/sinks/web-audio-api.js src/sinks/audio-data-api.js
LIGHT_OUT := sink-light.js
RELEASE_TAR_GZ := sink.js.tar.gz
RELEASE_ZIP := sink.js.zip
UPDATE := $(BUILD) update
CAT := cat
all: $(OUT)
light: $(LIGHT_OUT)
docs: $(DOCS)
release: $(RELEASE_TAR_GZ) $(RELEASE_ZIP)
$(OUT): $(IN)
$(CAT) $^ > $@
$(DOCS): $(BUILD) $(OUT)
$(UPDATE) docs
$(LIGHT_OUT): $(LIGHT_IN)
$(CAT) $^ > $@
$(RELEASE_TAR_GZ): $(OUT) $(LIGHT_OUT)
rm -rf $@
tar pczf $@ $^
$(RELEASE_ZIP): $(OUT) $(LIGHT_OUT)
rm -rf $@
zip $@ $^
clean:
rm $(OUT) $(LIGHT_OUT) $(DOCS) $(RELEASE_TAR_GZ) $(RELEASE_ZIP) -rf
.PHONY: all light docs clean