Enlil told Gilgamesh to build a boat.
“Enlil told Gilgamesh to build a boat.”
Correct, the first “written” flood story was Sumerian and predates the Babylonians. and I am sure it was plagiarized from oral tradition before the Sumerians.
“Enlil told Gilgamesh to build a boat”
Yep
Exactly. If it was written in cuneiform, in Babylonia, it's 1. pre-Apostilic and 2. referring the flood in the Epic of Gilgamesh. Nothing to do with the Flood of Noah unless, of course, the Noah's flood story was adapted from Gilgamesh's.