Build the correct target