make : 没有制定目标的规则。停止

make :no rule to make target. stop

我在虚拟机中使用 lubuntu 32 位,我的主机是 windows 7 32 位。我正在尝试从 Igh 安装 ethercat master。我已经成功克服了几个错误,但无法解决此错误。

akhil@akhil-virtual-machine:~/etherlab/sources$ ls
aclocal.m4  autoconf        bootstrap  CodingStyle.txt  config.log  configure.ac  COPYING.LESSER  documentation  ethercat.spec.in  FEATURES   include  Kbuild.in  m4           Makefile.in  NEWS    README.EoE  script  tool
AUTHORS     autom4te.cache  ChangeLog  config.h.in      configure   COPYING       devices         Doxyfile.in    examples          globals.h  INSTALL  lib        Makefile.am  master       README  rtdm        TODO    tty
akhil@akhil-virtual-machine:~/etherlab/sources$ make all modules
make: *** No rule to make target 'all'.  Stop.

我的生成文件:

ACLOCAL_AMFLAGS = -I m4

SUBDIRS = \
    devices \
    include \
    master \
    script

if BUILD_TOOL
SUBDIRS += tool
endif

if ENABLE_USERLIB
SUBDIRS += lib
endif

if ENABLE_TTY
SUBDIRS += tty
endif

if ENABLE_RTDM
SUBDIRS += rtdm
endif

# userspace example depends on lib/
SUBDIRS += examples

DIST_SUBDIRS = \
    devices \
    examples \
    include \
    lib \
    m4 \
    master \
    script \
    tool \
    rtdm \
    tty

noinst_HEADERS = \
    globals.h

EXTRA_DIST = \
    Doxyfile.in \
    FEATURES \
    Kbuild.in \
    README.EoE \
    ethercat.spec \
    ethercat.spec.in

BUILT_SOURCES = \
    Doxyfile \
    Kbuild \
    ethercat.spec

modules:
    $(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" modules

modules_install:
    $(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" \
        INSTALL_MOD_DIR="$(INSTALL_MOD_DIR)" modules_install

clean-local:
    $(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" clean

mydist:
    hg log --style=changelog $(srcdir) > ChangeLog
    @REV=`hg id -i $(srcdir)` && \
        $(MAKE) dist-bzip2 distdir=$(PACKAGE)-$(VERSION)-$${REV}

dist-hook:
    if which hg >/dev/null 2>&1; then \
        hg id -i $(srcdir) 2>/dev/null >$(distdir)/revision; \
    fi

mrproper: clean cleandoc
    rm -rf \
        *~ \
        ChangeLog \
        Doxyfile \
        Kbuild \
        Makefile \
        Makefile.in \
        TAGS \
        aclocal.m4 \
        autoconf \
        autom4te.cache \
        config.h \
        config.h.in \
        config.log \
        config.status \
        configure \
        configure.in \
        libtool \
        stamp-h1

doc:
    doxygen Doxyfile

cleandoc:
    @rm -rf doxygen-output

-------------------------------------------- --------------------------------

您需要先运行./configure。你的目录下没有Makefile