Better makefile
Extract animation-loop