Kohelet entertains three possibilities of what might make life meaningful: wisdom, pleasure and work.
But the ultimate litmus test will be the death of a person; does anything valuable endure after we depart this work. Is everything ephemeral (hevel)?