Commit 6d29f26f authored by Swann Perarnau's avatar Swann Perarnau
Browse files

[fix] properly create destdir for html doc

Solve an issue where the destination directory for the documentation
was not created during install phase. Also cleanup the automake rules
for documentation.

See #76 for details.
parent b3a73be1
Pipeline #11488 passed with stages
in 4 minutes and 44 seconds
DATA_INSTALL_DIR=$(datadir)/aml
DOXYGEN_BUILD_DIR=./build-doxygen
SPHINX_BUILD_DIR=./build-sphinx
DOXYGEN_BUILD_DIR=$(srcdir)/build-doxygen
SPHINX_BUILD_DIR=$(srcdir)/build-sphinx
SUBDIRS = tutorials
if BUILD_DOCS
build-docs:
$(SPHINX_BUILD_DIR): aml.doxy conf.py
$(DOXYGEN) aml.doxy
cp img/*png build-doxygen/xml
$(SPHINXBUILD) -v -W -b html -a . $(SPHINX_BUILD_DIR)
dist-hook: build-docs
cp -r $(SPHINX_BUILD_DIR) $(distdir)
if BUILD_DOCS
build-docs: $(SPHINX_BUILD_DIR)
install-doc-html: $(SPHINX_BUILD_DIR)
$(MKDIR_P) $(docdir)/html
cp -r $(SPHINX_BUILD_DIR)/. $(docdir)/html
else
build-docs:
@echo "not building documentation"
dist-hook: build-docs
install-doc-html:
endif
create-doc-dir:
mkdir -p $(DATA_INSTALL_DIR)
html-local: build-docs
install-doc-html: build-docs
if [ -d $(SPHINX_BUILD_DIR) ]; then \
cp -r $(SPHINX_BUILD_DIR)/. $(DATA_INSTALL_DIR)/html; \
fi
install-html-local: html-local install-doc-html
install-data-local: create-doc-dir install-doc-html
uninstall-local:
rm -rf $(DATA_INSTALL_DIR)
install-data-local: install-html-local
clean-local:
rm -rf $(DOXYGEN_BUILD_DIR) $(SPHINX_BUILD_DIR)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment