It is a friendship meter, and you fill it by duelling him and feeding him sandwiches he likes. Every win against him or accepted sandwich is marked by a bell — that is his heart meter rising.
Keep going until the meter fills and he will offer to team up. If the bell does not ring after a duel or a sandwich, stop for the day and try again tomorrow; pushing on a bad day does not add progress.