-
Notifications
You must be signed in to change notification settings - Fork 116
/
Makefile
27 lines (20 loc) · 878 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
# WebGL-2D
# Make sure $JSSHELL points to your js shell binary in .profile or .bashrc
# Most targets use commands that need a js shell path specified
JSSHELL ?= $(error Specify a valid path to a js shell binary in ~/.profile: export JSSHELL=C:\path\js.exe or /path/js)
# Version number used in naming release files.
VERSION ?= $(error Specify a version for your release (e.g., VERSION=0.5))
# Run JSLINT
check-lint:
${JSSHELL} -m -j -p -e "load('./support/jslint.js'); load('./support/jslint-cmdline.js'); runJslint(read('webgl-2d.js'));"
WEBGL2DJS=webgl-2d.js
TESTS=./test
CANVASTESTS=${TESTS}/philip.html5.org
CANVASTESTSJS=${CANVASTESTS}/tests.js
${CANVASTESTSJS}: ${WEBGL2DJS}
@@cat webgl-2d.js ${CANVASTESTS}/tests-core.js > ${CANVASTESTSJS}
@@echo "Created ${CANVASTESTSJS}"
# Create webgl-2d enabled tests.js
tests: ${CANVASTESTSJS}
clean:
rm ${CANVASTESTSJS}