A meaningful life aims to achieve objective goals of human existence. A meaningless life tries to achieve subjective or contrived goals (e.g. self-indulgence). The objective purpose of existence of every living being, including a human one, is to generate a new life. In humans, this means extending the family line. Therefore, when you extend your family line, your life has an objective meaning.