make:***没有使目标“ distclean”的规则。停止

问题描述 投票:0回答:1

[我正在尝试编译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.

我该怎么办?

makefile compilation vlc windows-subsystem-for-linux configure
1个回答
0
投票

当构建超出源目录并且配置了源目录时,例如,会生成此错误。存在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

© www.soinside.com 2019 - 2024. All rights reserved.