what is it made up of ?
Metals and gases.
Andromeda Galaxy
This violent collision formed most of the galaxy's (metal-rich) galactic halo and extended disk. During this epoch, its rate of star formation would have been very high, to the point of becoming a luminous infrared galaxy for roughly 100 million years. Andromeda and the Triangulum Galaxy had a very close passage 2–4 billion years ago. This event produced high rates of star formation across the Andromeda Galaxy's disk—even some globular clusters—and disturbed M33's outer disk.

Over the past 2 billion years, star formation throughout Andromeda's disk is thought to have decreased to the point of near-inactivity. There have been interactions with satellite galaxies like M32, M110, or others that have already been absorbed by Andromeda Galaxy. These interactions have formed structures like Andromeda's Giant Stellar Stream. A galactic merger roughly 100 million years ago is believed to be responsible for a counter-rotating disk of gas found in the center of Andromeda as well as the presence
who measured the distance to the andromeda galaxy to be over a million light years UNANSWERABLE
wiki:13496151
Andromeda Galaxy [SEP] Formation and history
The Andromeda Galaxy was formed roughly 10 billion years ago from the collision and subsequent merger of smaller protogalaxies. This violent collision formed most of the galaxy's (metal-rich) galactic halo and extended disk. During this epoch, its rate of star formation would have been very high, to the point of becoming a luminous infrared galaxy for roughly 100 million years. Andromeda and the Triangulum Galaxy had a very close passage 2–4 billion years ago. This event produced high rates of star formation across the Andromeda Galaxy's disk—even some globular clusters—and disturbed M33's outer disk. Over the past 2 billion years, star formation throughout Andromeda's disk is thought to have decreased to the point of near-inactivity.