The genealogy in Genesis 5 was once used as the basis of the worst sermon I have ever heard, back in 1986. A genealogy has a direction, you see, a purpose. We all need direction and purpose. If you have direction and pruprose, you will get somewhere. If you aim at nothing, you are sure to hit it.
That was the sum total of the message.
There is a grain of truth there, however. Genealogies do have direction and purpose, but they are God's purposes, not ours. The growing and multiplying of the human race fulfils the command of Genesis 1:28. The endless repetition of the phrase "and he died" fulfils the promise of Genesis 2:17.
More to say, but I better go and say it in the talk I'm giving at 12.00.