Instead of shotty scripts use make instead