In temples adhering to canonical protocol, the offering of food itself is made from the laypeople to the (living) Buddhist monks, thus generating "merit" that indirectly benefits the dead.
In temples following customary practices, the offering of food is made from the general public to (living) Buddhist monks, thereby generating "merit" that indirectly benefits the deceased, highlighting the connection between living and deceased individuals.