forked from pubnub/javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (20 loc) · 665 Bytes
/
Makefile
File metadata and controls
28 lines (20 loc) · 665 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
include ../Makefile.inc
WEB_DIR=$(REPOS_DIR)/web
PUBNUB_MIN_JS=$(WEB_DIR)/pubnub.min.js
SOCKET_IO_BASE_JS=socket.io-base.js
SOCKET_IO_MIN_JS=socket.io.min.js
OUTPUT_FILES=$(SOCKET_IO_MIN_JS)
SOCKET_IO_TMP=socket.io.tmp
GIBBERISH_AES_JS=$(WEB_DIR)/pubnub-crypto.min.js
.PHONY : all
all: build
.PHONY : build
build: $(SOCKET_IO_MIN_JS)
$(SOCKET_IO_MIN_JS): $(SOCKET_IO_BASE_JS) $(PUBNUB_MIN_JS)
cat $(SOCKET_IO_BASE_JS) | java -jar $(GOOGLE_MINIFY) > $(SOCKET_IO_TMP)
cat $(PUBNUB_MIN_JS) $(GIBBERISH_AES_JS) $(SOCKET_IO_TMP) > $(SOCKET_IO_MIN_JS)
rm $(SOCKET_IO_TMP)
.PHONY : clean
clean:
rm -f $(OUTPUT_FILES) $(SOCKET_IO_TMP)
include ../Makefile.post