【发布时间】:2012-01-27 17:58:16
【问题描述】:
我在 Emacs 下编写 OCaml,工作文件夹中有一个 makefile,还有几个包含 .ml 文件的子文件夹。如果我启动M-x compile 和make 在makefile 的缓冲区上工作正常,但在.ml 文件的缓冲区上不起作用,它会给我一个错误:
-*- mode: compilation; default-directory: "..." -*-
Compilation started at Fri Jan 27 18:51:35
make -k
make: *** No targets specified and no makefile found. Stop.
Compilation exited abnormally with code 2 at Fri Jan 27 18:51:35
这是可以理解的,因为默认目录是不包含makefile 的子文件夹。有谁知道如何将makefile的文件夹设置为默认编译目录?
【问题讨论】:
标签: emacs compilation ocaml