首页 > 解决方案 > 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.

我能做些什么?

标签: makefilecompilationvlcwindows-subsystem-for-linuxconfigure

解决方案


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


推荐阅读