[libvirt] [PATCH 1/4] docs: Introduce $(modules)

Andrea Bolognani abologna at redhat.com
Fri May 10 18:51:17 UTC 2019


This variable contains a lists of documentation modules,
in a neutral format.

Right now is only used to define $(apihtml_generated), but
later on we're gonna reuse it.

Signed-off-by: Andrea Bolognani <abologna at redhat.com>
---
 docs/Makefile.am | 31 ++++++++++++++++++-------------
 1 file changed, 18 insertions(+), 13 deletions(-)

diff --git a/docs/Makefile.am b/docs/Makefile.am
index 29b0761a2b..3a729f909c 100644
--- a/docs/Makefile.am
+++ b/docs/Makefile.am
@@ -18,24 +18,29 @@
 
 DEVHELP_DIR=$(datadir)/gtk-doc/html/libvirt
 
+modules = \
+	libvirt-common \
+	libvirt-domain \
+	libvirt-domain-snapshot \
+	libvirt-event \
+	libvirt-host \
+	libvirt-interface \
+	libvirt-network \
+	libvirt-nodedev \
+	libvirt-nwfilter \
+	libvirt-secret \
+	libvirt-storage \
+	libvirt-stream \
+	virterror \
+	$(NULL)
+
 apihtml = \
   html/index.html \
   $(apihtml_generated)
 
 apihtml_generated = \
-  html/libvirt-libvirt-common.html \
-  html/libvirt-libvirt-domain.html \
-  html/libvirt-libvirt-domain-snapshot.html \
-  html/libvirt-libvirt-event.html \
-  html/libvirt-libvirt-host.html \
-  html/libvirt-libvirt-interface.html \
-  html/libvirt-libvirt-network.html \
-  html/libvirt-libvirt-nodedev.html \
-  html/libvirt-libvirt-nwfilter.html \
-  html/libvirt-libvirt-secret.html \
-  html/libvirt-libvirt-storage.html \
-  html/libvirt-libvirt-stream.html \
-  html/libvirt-virterror.html
+	$(addprefix html/libvirt-,$(addsuffix .html,$(modules))) \
+	$(NULL)
 
 apipng = \
   html/left.png \
-- 
2.20.1




More information about the libvir-list mailing list