forked from pubnub/javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (23 loc) · 824 Bytes
/
Copy pathMakefile
File metadata and controls
30 lines (23 loc) · 824 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
include ../Makefile.inc
WEB_DIR=$(REPOS_DIR)/web
PUBNUB_JS=$(WEB_DIR)/pubnub.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
.PHONY : all
all: build
.PHONY : build
build: $(SOCKET_IO_MIN_JS)
$(SOCKET_IO_MIN_JS): $(SOCKET_IO_BASE_JS) $(PUBNUB_JS)
$(ECHO) "// Version: $(VERSION)" > $(SOCKET_IO_MIN_JS)
$(ECHO) "(function(){" >> $(SOCKET_IO_MIN_JS)
cat $(PUBNUB_JS) | java -jar $(GOOGLE_MINIFY) --compilation_level=ADVANCED_OPTIMIZATIONS>> $(SOCKET_IO_MIN_JS)
$(ECHO) "})();" >> $(SOCKET_IO_MIN_JS)
cat $(SOCKET_IO_BASE_JS) | java -jar $(GOOGLE_MINIFY) > $(SOCKET_IO_TMP)
cat $(SOCKET_IO_TMP) >> $(SOCKET_IO_MIN_JS)
rm $(SOCKET_IO_TMP)
.PHONY : clean
clean:
rm -f $(OUTPUT_FILES) $(SOCKET_IO_TMP)
include ../Makefile.post