如果makefile包含「include」,是否可以獲得「完整的」makefile?例如:如果Makefile包含「include」,我如何獲得「完整的」makefile?
#here is the contents of Makefile
include inc1.i
include inc2.i
clean:
rm -rf *
#here is the contents of inc1.i
abc:
touch abc
#here is the contents of inc2.i
def:
touch def
如何在沒有include的情況下獲得「完整的」Makefile?因爲當Makefile包含其他公司時,inc文件也包含另一個子公司......它很難閱讀!
我希望得到一個「全」生成文件,如:從make -p
abc:
touch abc
def:
touch def
clean:
rm -rf *