In-source builds are not allowed, but documentation requires Make.config

Hi,

I’m trying to build the documentation. Running make in /docs, I get the following error:

Makefile:44: Makefile.config: No such file or directory
make: *** No rule to make target `Makefile.config’. Stop.

According to this answer: http://stackoverflow.com/questions/4763381/no-rule-to-make-target-makefile-needed-by-makefile#comment40533198_4908782, a ./configure in the LLVM_SRC_ROOT should fix this. The error seems to suggest a similar thing. However:

$ ./configure
configure: error: In-source builds are not allowed. Please configure from a separate build directory!

Makes it unable to generate the required files. How should this be fixed?

Thanks in advance,
Sam

Hi,

I’m trying to build the documentation. Running make in /docs, I get the
following error:

Makefile:44: Makefile.config: No such file or directory
make: *** No rule to make target `Makefile.config'. Stop.

Hi,

You can try running (from the LLVM_SRC_DIR\docs directory): make -f
Makefile.sphinx

See [1] for some more information.

[1] http://llvm.org/docs/BuildingLLVMWithAutotools.html

Best regards
David

Thanks, I’ve found the answer. Yours is actually complementary to it.

For anyone interested, LLVM_ENABLE_DOXYGEN must be set to On when running cmake.

$ mkdir build && cd build
$ cmake -DLLVM_ENABLE_DOXYGEN=On
$ make doxygen-llvm

Sam