Hello!

I want the Sphinx source root to be the root directory of the project, but 
have Sphinx conf.py in a subdirectory "sphinx".
The Sphinx Makefile is in the project root dir, and I have added arguments
  -c sphinx
to the Makefile.
But when I try to build Sphinx says that it cannot find conf.py, and also 
that it looks for it in the directory sphinx/<BUILD-TARGET>:

$ make html 
Running Sphinx v7.2.6 

Configuration error: 
config directory doesn't contain a conf.py file 
(/home/emil/pgm/tools/sphinx/test-prj/sphinx/html) 
make: *** [Makefile:20: html] Fel 2 
$ make text 
Running Sphinx v7.2.6 

Configuration error: 
config directory doesn't contain a conf.py file 
(/home/emil/pgm/tools/sphinx/test-prj/sphinx/text) 
make: *** [Makefile:20: text] Fel 2 

Here is my Makefile:

SPHINXOPTS    ?= 
SPHINXBUILD   ?= sphinx-build 
SOURCEDIR     = . 
BUILDDIR      = build 

help: 
       @$(SPHINXBUILD) -M help -c sphinx "$(SOURCEDIR)" "$(BUILDDIR)" 
$(SPHINXOPTS) $(O) 

.PHONY: help Makefile 

%: Makefile 
       @$(SPHINXBUILD) -M $@ -c sphinx "$(SOURCEDIR)" "$(BUILDDIR)" 
$(SPHINXOPTS) $(O)

Thankful for help, Emil

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sphinx-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sphinx-users/24f2137b-c229-46c9-85dc-9927b41b189an%40googlegroups.com.

Reply via email to