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

时间:2016-04-21 11:50:55

标签: ubuntu makefile master ethercat

我在虚拟机中使用了lubuntu 32位,而我的主机是32位的Windows 7。我正在尝试从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

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

1 个答案:

答案 0 :(得分:0)

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