Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: semver
Fetching contributors…

Cannot retrieve contributors at this time

59 lines (48 sloc) 1.101 kb
.PHONY: clean, all
all: cp.min.js bench.js demos.js
js = chipmunk.js \
cpVect.js \
cpBB.js \
cpShape.js \
cpPolyShape.js \
cpBody.js \
cpSpatialIndex.js \
cpBBTree.js \
cpArbiter.js \
cpCollision.js \
cpSpace.js \
cpSpaceComponent.js \
cpSpaceQuery.js \
cpSpaceStep.js
constraints = \
util.js \
cpConstraint.js \
cpPinJoint.js \
cpSlideJoint.js \
cpPivotJoint.js \
cpGrooveJoint.js \
cpDampedSpring.js \
cpDampedRotarySpring.js \
cpRotaryLimitJoint.js \
cpRatchetJoint.js \
cpGearJoint.js \
cpSimpleMotor.js
demos = demo.js \
ball.js \
PyramidStack.js \
PyramidTopple.js
jsfiles = $(addprefix lib/, $(js))
constraintfiles = $(addprefix lib/constraints/, $(constraints))
demofiles = $(addprefix demo/, $(demos))
cp.js: $(jsfiles) $(constraintfiles)
echo '(function(){' > $@
cat $+ >> $@
echo "})();" >> $@
cp.min.js: cp.js
uglifyjs $+ > $@
bench.js: $(jsfiles) $(constraintfiles) benchmark/mersenne.js benchmark/bench.js
cat $+ > $@
demos.js: $(demofiles)
cat $+ > $@
clean:
rm -f cp.js cp.min.js bench.js demos.js
Jump to Line
Something went wrong with that request. Please try again.