Combining makefiles

I have concatenated 2 makefiles, to produce 1 however it is not running all of the code, producing a fatal error: symbol referencing errors. No output written. Can anybody please help?

i have to ask why would you combine 2 make files into 1?

Because the 2 makefiles are in different directories. They both perform clean up functions. But I want to use 1 make file to clean both directories up.

If the Makefiles aren't too long, may be you can post here. You can't usually just concatenate two Makefiles. In some cases, the ordering of targets does matter.

Its ok, I know how to do it now thanks