Add sphinx for documentation building

This commit is contained in:
2022-03-10 14:46:55 +01:00
parent 5b3321348a
commit 9cceaac1c1
9 changed files with 73 additions and 27 deletions

View File

@@ -1,7 +1,24 @@
DOXYGEN_INDEX = doxygen/html/index.html
all: $(DOXYGEN_INDEX)
all: $(DOXYGEN_INDEX) sphinx
$(DOXYGEN_INDEX):
doxygen Doxyfile
.PHONY: sphinx
SPHINX_BUILD_DIR = sphinx
$(SPHINX_BUILD_DIR)/index.html: index.rst atrip.rst conf.py
sphinx-build . $(SPHINX_BUILD_DIR)
sphinx: $(SPHINX_BUILD_DIR)/index.html
index.rst: ../README.rst
mv $< $@
atrip.rst: ../atrip.rst
mv $< $@
../%.rst:
make -C $(dir $@) $(notdir $@)
clean:
rm -rfv sphinx doxygen/ index.rst atrip.rst