forked from endtwist/AjaxIM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (32 loc) · 861 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
41
42
43
44
SRC_DIR = client/js
BUILD_DIR = build
PREFIX = .
DIST_DIR = client/js
BASE_FILES = ${SRC_DIR}/md5.js\
${SRC_DIR}/store.js\
${SRC_DIR}/cookies.js\
${SRC_DIR}/dateformat.js\
${SRC_DIR}/json.js\
${SRC_DIR}/im.js
MODULES = ${SRC_DIR}/intro.js\
${BASE_FILES}\
${SRC_DIR}/outro.js
IMJS = ${DIST_DIR}/im.compiled.js
IMJS_MIN = ${DIST_DIR}/im.min.js
COMPILER = java -jar ${BUILD_DIR}/google-compiler-20100616.jar
all: imjs min
@@echo "Ajax IM build complete."
imjs: ${IMJS}
${IMJS}: ${MODULES}
@@echo "Building" ${IMJS}
@@cat ${MODULES} | sed 's/debug = true/debug = false/' > ${IMJS}
min: ${IMJS_MIN}
${IMJS_MIN}: ${IMJS}
@@echo "Building" ${IMJS_MIN}
@@head -21 ${IMJS} > ${IMJS_MIN}
@@${COMPILER} --js ${IMJS} --warning_level QUIET >> ${IMJS_MIN}
@@rm -f ${IMJS}
clean:
@@echo "Removing built files"
@@rm -f ${IMJS}
@@rm -f ${IMJS_MIN}