ninja: error: ‘xxx‘, needed by ‘xxx‘, missing and no known rule to make it
ninja
a small build system with a focus on speed
项目地址:https://gitcode.com/gh_mirrors/ni/ninja

·
ninja: error: ‘xxx’, needed by ‘xxx’, missing and no known rule to make it
我们来用上篇了解到的makefile去创造出类似于上述的错误。
首先创建一个makefile文件,遵循makefile语法规则。写入如下内容:
保存后直接执行make(此时,make命令会在当前目录下按如下顺序查找Makefile文件:“GNUmakefile”、“makefile”、“Makefile”的文件,一旦找到,就开始读取这个文件并执行。)这个错误是不是和上面ninja报错很像,其实报错原因是一样的。这是由于目前我们没有依赖文件prerequisites(这里是tp/init.goodix.rc文件)来生成目标文件target(这里是etc/init.goodix.rc)。
创建tp文件夹,并在此文件夹下创建init.goodix.rc文件(空文件即可),在次执行make
这次又报错了,别急这是因为我们没有创建etc文件夹导致的,我们创建个etc文件夹再次执行make,就会发现问题解决了。




a small build system with a focus on speed
最近提交(Master分支:19 天前 )
47ed2d24
Bump actions/checkout from 4 to 5 10 天前
2e719411
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-version: '5'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com> 20 天前
更多推荐
所有评论(0)