Govt targets 340 mt foodgrains output