Take pineapple and make pulp of it without adding water.
Take equal quantity of pineapple pulp, sugar and 2 to 3 cloves
Boil them together on slow fire in heavy bottom pan.Keep stirring with a wooden spoon.
After a while it will change color and keep checking the consistency, until it reaches a thread consistency between your fingers. Store them in glass jars.