A rod of mass m and length l is lying on a horizontal table. The work done in making it stand vertically on one end will be