Crews battled the fire in Littleborough, Rochdale, for several hours after it was reported shortly before 19:30 BST on Wednesday.
Engines from Greater Manchester Fire and Rescue Service attended, with back-up from West Yorkshire.
Firefighters remained at the scene until after 05:30 BST and the cause remains under investigation.

Media playback is not supported on this device
An, ranked 132 in the world, finished on 21 under par, six shots clear of Spain's Miguel Angel Jimenez (67) and Thailand's Thongchai Jaidee (69).
England's Chris Wood (66) was fourth on 13 under, one shot clear of Italy's Francesco Molinari (74), who was tied for the lead with An overnight.
The 23-year-old An's win is his first on one of the world's major tours.
An was the youngest-ever winner of the US Amateur Championship in 2009, at the age of 17.
Media playback is not supported on this device
He became only the third European Tour rookie to win the prestigious PGA Championship in its 60-year history and his 267 total over four rounds also beat the tournament record by two shots.
His victory, the first time the European Tour's flagship event has been won by an Asian, will see him climb into the world's top 60, secured his place in the US Open and Open Championship and a five-year exemption in Europe.
"It's going to be life changing," said An, the son of two Olympic table-tennis medallists - his mother Jiao Zhimin represented China and his father Ahn Jae Hyung competed for South Korea.
"This is the biggest event on the European Tour and there are a lot of benefits. I played really well today and had all the confidence going into the last couple of holes."
An began the final round tied for the lead with Molinari and, despite picking up shots at the second and fourth, was only one ahead at the turn thanks to a hat-trick of birdies from Jaidee from the fifth.
However, a birdie at the 11th and tap-in eagle at the 12th gave An a three-shot cushion that became four when Jaidee bogeyed the 13th.
An made certain of victory with birdies on the 15th and 17th and a par on the last completed a hugely impressive performance from the Challenge Tour graduate.
Bristol's Wood had a hole in one at the 14th, winning himself a car from the sponsors in the process.

The action was taken by St Columba's School in Inverclyde after details of police investigations came to light.
Police Scotland confirmed that it was investigating a recent allegation involving a young child.
A 56-year-old man has also been reported to prosecutors over alleged historical abuse of a 15-year-old girl.
A Police Scotland spokeswoman said: "We can confirm that a complaint has been received regarding a sexual assault on a young girl.
"Enquires are ongoing to establish the full circumstances and it would be inappropriate to comment further at this time."
On the other allegation she said: "A 56-year-old man has been reported to the Procurator Fiscal in connection with non-recent alleged sexual abuse of a 15-year-old girl."
The co-educational school, based in Kilmacolm, caters for about 700 pupils, with annual fees of about Â£11,000.

The engineering firm says the £250m expansion of its Malmesbury headquarters will eventually bring 3,000 new jobs to the town.
Planning conditions have been added regarding archaeological issues and addressing site access, along with concerns about increased traffic.
The expansion is expected to be the largest in the firm's 20-year history.
A spokesperson for Dyson said the decision was just one part of a number of stages in the planning process and they did not want to comment further.
About 50 firefighters tackled a large blaze at a five-storey disused mill in Greater Manchester.
[NEXT_CONCEPT]
South Korea's Byeong-hun An carded a final-round, seven-under-par 65 to win the BMW PGA Championship at Wentworth.
[NEXT_CONCEPT]
Two teachers at one of Scotland's leading private schools have been suspended amid separate allegations of sexual abuse of young girls.
[NEXT_CONCEPT]
Outline plans to double the size of Dyson's research centre in Wiltshire have been approved by planners.