我正在尝试为 android 源代码构建设置 android 环境。我认为系统上的 make 版本导致 android 构建出现问题。我现在正尝试从我从http://ftp.gnu.org/gnu/make/下载的源代码安装 make 。我首先配置它然后运行 make 这给了我这个错误。一直试图通过更改错误行中的内容来调试它。
root@hali-desktop:/home/hali/Downloads/make-3.81# make
/bin/bash: -c: line 0: syntax error near unexpected token `;;'
/bin/bash: -c: line 0: `if test ! -f config.h; then rm -f stamp-h1; make stamph1;;
else :; fi'
make: *** [config.h] Error 1
这是我要编译的代码中的 Makefile。
config.h: stamp-h1
@if test ! -f $@; then \
rm -f stamp-h1; \
$(MAKE) stamp-h1; \
else :; fi
我不太了解shell脚本。虽然为了故障排除而研究了一个 lil。我需要这里的帮助。