在Makefile里,有一句GNU make内建功能,无法 正确展开:
BASE_INSTALL_DIR := $(shell pwd)/..以下的,就都展开 不正确了。
TOOLS_INSTALL_DIR := $(BASE_INSTALL_DIR)/tools
SDK_INSTALL_DIR := $(BASE_INSTALL_DIR)/sdk
错误消息如下
make[1]: pwd: Command not found
如何解决这个问题?
在Makefile里,有一句GNU make内建功能,无法 正确展开:
BASE_INSTALL_DIR := $(shell pwd)/..
$(shell pwd)代不出字串来,原因在于 $PATH 没有包括当前目录 " . "
有两个解决方法:1. 做docker image的时候,就把路径做进去;2. 等container跑起来,再手动去设路径。