makefile - make: *** 没有使目标“distclean”的规则。停止
问题描述
我正在尝试编译 VLC,我已经做了 ./configure,导出了 PKG_CONFIG_LIBDIR,当我尝试 configure.sh 时,我得到:
64-pc-linux-gnu
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for x86_64-linux-gnu-strip... x86_64-linux-gnu-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
configure: error: source directory already configured; run "make distclean" there first
当我运行“make distclean”时,我得到了
make: *** No rule to make target 'distclean'. Stop.
我能做些什么?
解决方案
当构建超出源目录并且配置了源目录时会生成此错误,例如存在config.status
文件。
# test to see if srcdir already configured
if test -f $srcdir/config.status; then
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
fi
make distclean
在源目录中运行或config.status
从那里删除。
推荐阅读
- java - Java剪贴板不与系统共享
- git - 如何跟踪多个用户、一个公共登录和一个共享工作目录的 Git 提交?
- python - PyQt5 使用 QRunnable 启动其他 QRunnable
- go - 获取有关依赖项来自何处的注册表信息
- firebase - 尽管已登录,但在查询 Firestore 时,Firebase 身份验证为空
- postgresql - 函数内的时间戳比较
- php - 在 PHP 中重新格式化字符串以添加双引号和反斜杠
- c - 如何停止接收输入与 C 中的输入
- css - 如何让一个内部带有可滚动 div 的 div 不会根据窗口大小滚动超过某个点?
- pandas - 从数据框中删除一组日期