-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmakefile
More file actions
38 lines (30 loc) · 952 Bytes
/
Copy pathmakefile
File metadata and controls
38 lines (30 loc) · 952 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
31
32
33
34
35
36
37
38
APP_NAME = orbits
SRC_DIR = js/src
BUILD_DIR = js/build
COMPILER_DIR = /cygdrive/d/Google\ Closure\ Compiler/compiler.jar
BASE_FILES = ${SRC_DIR}/intro.js\
${SRC_DIR}/core.js\
${SRC_DIR}/renderer.js\
${SRC_DIR}/physics.js\
${SRC_DIR}/ui.js\
${SRC_DIR}/sat.js\
${SRC_DIR}/main.js\
${SRC_DIR}/outro.js
${APP_NAME} = ${BUILD_DIR}/${APP_NAME}.js
MIN = ${BUILD_DIR}/${APP_NAME}.min.js
COMPILER = ${BUILD_DIR}/compiler.jar
${APP_NAME} : ${${APP_NAME}}
min : ${MIN}
gcomp : ${COMPILER}
${${APP_NAME}} : ${BASE_FILES}
@@echo "Building Unminified Version"
@@cat ${BASE_FILES} > ${BUILD_DIR}/${APP_NAME}.js
${COMPILER} :
@@echo "Copying Compiler"
@@cp ${COMPILER_DIR} ${BUILD_DIR}/
${MIN} : ${BUILD_DIR}/${APP_NAME}.js ${COMPILER}
@@echo "Building Minified Version"
@@java -jar ${BUILD_DIR}/compiler.jar --js ${${APP_NAME}} --js_output_file ${MIN}
clean :
@@echo "Removing Build Directory Contents:" ${BUILD_DIR}
@@rm -f ${BUILD_DIR}/*.*