make中include的疑问
发表于 : 2018-12-29 14:27
主文件如下。包含了本目录other_file中的other.mk
include $(CURDIR)/other_file/other.mk
debug:
@echo $(CURDIR)
other.mk
all:
@echo "other file"
但是执行make的时候。只执行了other.mk中的打印(other file)。@echo $(CURDIR)却没有执行.这是什么原因呢
include $(CURDIR)/other_file/other.mk
debug:
@echo $(CURDIR)
other.mk
all:
@echo "other file"
但是执行make的时候。只执行了other.mk中的打印(other file)。@echo $(CURDIR)却没有执行.这是什么原因呢