C Maikefile错误生成:**[prepare]错误127
我从Makefile中得到以下错误:C Maikefile错误生成:**[prepare]错误127,c,linux,makefile,C,Linux,Makefile,我从Makefile中得到以下错误: VERSION=`git describe --abbrev=0 --tags` TAG=$(VERSION) all: prepare prepare: $(TAG) 错误: `git describe --abbrev=0 --tags` /bin/sh: v1.1.2: command not found make: *** [prepare] Error 127 我做错了什么?您的subshell命令git descripe--abb
VERSION=`git describe --abbrev=0 --tags`
TAG=$(VERSION)
all: prepare
prepare:
$(TAG)
错误:
`git describe --abbrev=0 --tags`
/bin/sh: v1.1.2: command not found
make: *** [prepare] Error 127
我做错了什么?您的subshell命令
git descripe--abbrev=0--tags
被执行并返回字符串“v1.1.2”。Make然后尝试将其作为程序执行
prepare:
echo $(TAG)
应能工作您的subshell命令
git descripe--abbrev=0--tags
执行后返回字符串“v1.1.2”。Make然后尝试将其作为程序执行
prepare:
echo $(TAG)
应该工作准备配方尝试实现的是什么?
make:**[TARGET]错误XXX
错误总是子命令错误,FYI准备配方尝试实现的是什么?make:**[TARGET]错误XXX
错误总是子命令错误,FYI