A noble purpose makes hard work a pleasure.

Literal

Splendid purpose [subject-が] exists [conditional-ば], hard work [also-も] enjoyment [result-になる].

立派な目的 (a noble/splendid purpose) motivates effort. ~ば conditional: 'if there is a fine goal.' つらい仕事も楽しみになる — even painful work becomes enjoyment. A motivational statement.