emacs - GNU make yield “commands commence before first target”错误

标签 emacs makefile

尝试从Fedora 15 x86_64上的源安装Emacs 22.3。

./configure

命令执行正常,但是

使 yield 错误:
[sigrlami@server emacs-22.3]# make
cd lib-src; make all  \
CC='gcc' CFLAGS='-g -O2 -Wno-pointer-sign ' CPPFLAGS='-D_BSD_SOURCE  ' \
LDFLAGS='-Wl,-znocombreloc ' MAKE='make'
make[1]: Entering directory `/home/sigrlami/bin/emacs-22.3/lib-src'
Makefile:148: *** recipe commences before first target.  Stop.
make[1]: Leaving directory `/home/sigrlami/bin/emacs-22.3/lib-src'
make: *** [lib-src] Error 2

在makefile中,我什么都没碰到,在第148行中一切正常:
144 # ========================== start of cpp stuff =======================
145 LIBS_MOVE=$(KRB4LIB) $(DESLIB) $(KRB5LIB) $(CRYPTOLIB) $(COM_ERRLIB) $(HESIODLIB)
146 LOADLIBES= -lc
147 ALL_CFLAGS = -D_BSD_SOURCE -DHAVE_CONFIG_H
148           -I. -I../src -I${srcdir} -I${srcdir}/../src ${LDFLAGS} ${CPPFLAGS} ${CFLAGS}
149 LINK_CFLAGS = -D_BSD_SOURCE -DHAVE_CONFIG_H

有什么建议如何解决这个问题?也许系统没有一些库?

最佳答案

make输入语言对空格敏感。

特别是命令(为了重制目标而执行的操作)以选项卡开头,因此错误明确地告诉您选项卡不正确。

尽管只有分行开头的选项卡具有特殊的意义,但我尝试不使用makefile中的任何选项卡,而是发出命令开始的信号。

关于emacs - GNU make yield “commands commence before first target”错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7783920/

相关文章:

emacs - Helm 在solarized-dark 中选择不可读的高亮颜色

emacs - 永久改变一段代码缩略显示的状态?

c++ - 如何使用 clang/LLVM 库编译 C++ 代码?

c++ - 如何在 CMake 中设置编译标志?

emacs - 将 flycheck 与 compile_commands.json 结合使用

visual-studio - Visual Studio 是否具有 Emacs 寄存器之类的功能?

filter - Makefile:如何对多个通配符应用等效过滤器

makefile - go的多包makefile示例

c - 链接器找不到对作为参数传递给 gcc 的 .a 库的引用

emacs - 当磁盘上的文件发生更改时,如何让 Emacs 自动刷新所有缓冲区?