Simplify (shorten) some Rake rules by unsing extern functoins.