Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 59 lines (48 sloc) 1.101 kB
8c6f63c @josephg Added the first couple demos
authored
1 .PHONY: clean, all
2
3 all: cp.min.js bench.js demos.js
daa5d46 @josephg Initial commit
authored
4
5 js = chipmunk.js \
6 cpVect.js \
7 cpBB.js \
8 cpShape.js \
9 cpPolyShape.js \
10 cpBody.js \
11 cpSpatialIndex.js \
12 cpBBTree.js \
13 cpArbiter.js \
14 cpCollision.js \
15 cpSpace.js \
16 cpSpaceComponent.js \
17 cpSpaceQuery.js \
18 cpSpaceStep.js
19
5927a62 @josephg Cleaned up makefile and removed built files from dependancies
authored
20 constraints = \
21 util.js \
86568f6 @josephg Added cpPivotJoint. Made the mouse in the demos move objects instead …
authored
22 cpConstraint.js \
d7b1fe2 @josephg Added a slide joint and pin joint
authored
23 cpPinJoint.js \
24 cpSlideJoint.js \
815b3e0 @josephg Fixed bug in cpVect, and added groove joint
authored
25 cpPivotJoint.js \
787b629 @josephg Added Damped Spring. Renamed v.length to v.len to avoid conflict.
authored
26 cpGrooveJoint.js \
e8b2b89 @josephg Added the rest of the constraints.
authored
27 cpDampedSpring.js \
28 cpDampedRotarySpring.js \
29 cpRotaryLimitJoint.js \
30 cpRatchetJoint.js \
31 cpGearJoint.js \
32 cpSimpleMotor.js
daa5d46 @josephg Initial commit
authored
33
8c6f63c @josephg Added the first couple demos
authored
34 demos = demo.js \
35 ball.js \
36 PyramidStack.js \
37 PyramidTopple.js
5927a62 @josephg Cleaned up makefile and removed built files from dependancies
authored
38
39 jsfiles = $(addprefix lib/, $(js))
40 constraintfiles = $(addprefix lib/constraints/, $(constraints))
8c6f63c @josephg Added the first couple demos
authored
41 demofiles = $(addprefix demo/, $(demos))
5927a62 @josephg Cleaned up makefile and removed built files from dependancies
authored
42
b56c72f @josephg Removed intermediate cpConstraints build step from the makefile
authored
43 cp.js: $(jsfiles) $(constraintfiles)
1d8ed58 @josephg Added a safety wrapper around cp.js
authored
44 echo '(function(){' > $@
45 cat $+ >> $@
46 echo "})();" >> $@
5927a62 @josephg Cleaned up makefile and removed built files from dependancies
authored
47
b56c72f @josephg Removed intermediate cpConstraints build step from the makefile
authored
48 cp.min.js: cp.js
49 uglifyjs $+ > $@
29dc9d7 @josephg Exposed some of the utility methods internally. Added a benchmark tool
authored
50
b56c72f @josephg Removed intermediate cpConstraints build step from the makefile
authored
51 bench.js: $(jsfiles) $(constraintfiles) benchmark/mersenne.js benchmark/bench.js
29dc9d7 @josephg Exposed some of the utility methods internally. Added a benchmark tool
authored
52 cat $+ > $@
daa5d46 @josephg Initial commit
authored
53
8c6f63c @josephg Added the first couple demos
authored
54 demos.js: $(demofiles)
55 cat $+ > $@
56
daa5d46 @josephg Initial commit
authored
57 clean:
b56c72f @josephg Removed intermediate cpConstraints build step from the makefile
authored
58 rm -f cp.js cp.min.js bench.js demos.js
Something went wrong with that request. Please try again.