What is the correct way to use include makefile?

Possible duplicate:
Generic GNU makefile path

After reading The recursive look is considered malicious. I decided to use the "include makefile" in my next project. I have a main Makefile that includes two subfiles that are in different versions. the problem is that the paths that are inside the masked file belong to its director, so when I include it from the main Makefile, it cannot find the files. is there any way to solve this problem without changing the paths?

+3
source share
1 answer

make DAG, , "" . :

big_project
|--Makefile
|
|--sub_project_1
|  |--...
|  |--Makefile
|
|--sub_project_2
   |--...
   |--Makefile

, make big_project , , , , Makefile sub_project_x, .

+1

All Articles