1
0
Fork 0
tuned/doc/manual/Makefile
Pavol Žáčik 2c4698e750
docs: Build function docs from docstrings
Read the docstrings using ASTs instead of
importing the modules; this prevents the
need to install TuneD dependencies when
just building the docs (e.g., in Github Pages).
2026-03-03 16:28:25 +01:00

14 lines
942 B
Makefile

.PHONY: clean
index.html: master.adoc assemblies/*.adoc meta/*.adoc modules/performance/*.adoc ../../tuned/plugins/plugin_*.py ../../tuned/profiles/functions/function_*.py
$(PYTHON) ./compile_plugin_docs.py ../../tuned/plugins plugin_ Plugin modules/performance/ref_available-tuned-plug-ins_intro.adoc modules/performance/ref_available-tuned-plug-ins.adoc
$(PYTHON) ./compile_plugin_docs.py ../../tuned/profiles/functions function_ Function modules/performance/ref_built-in-functions-available-in-tuned-profiles_intro.adoc modules/performance/ref_built-in-functions-available-in-tuned-profiles.adoc
asciidoctor -o index.html master.adoc || asciidoc -d book -o index.html master.adoc
install: index.html
install -Dpm 0644 index.html $(DESTDIR)$(DOCDIR)/manual/index.html
clean:
rm -f modules/performance/ref_available-tuned-plug-ins.adoc
rm -f modules/performance/ref_built-in-functions-available-in-tuned-profiles.adoc
rm -f *.html