doc/manuals: (re-)generate XML VTY reference automatically
Change-Id: I0818be314e36d5fb848c9248be6b8cd7fe20fb39
Related: SYS#4937
diff --git a/doc/manuals/Makefile.am b/doc/manuals/Makefile.am
index a29b48f..e425716 100644
--- a/doc/manuals/Makefile.am
+++ b/doc/manuals/Makefile.am
@@ -15,6 +15,12 @@
osmopcu-usermanual.pdf: $(srcdir)/chapters/*.adoc
VTY_REFERENCE = osmopcu-vty-reference.xml
+
+ BUILT_REFERENCE_XML = $(builddir)/vty/pcu_vty_reference.xml
+ $(builddir)/vty/pcu_vty_reference.xml: $(top_builddir)/src/osmo-pcu
+ mkdir -p $(builddir)/vty
+ $(top_builddir)/src/osmo-pcu --vty-ref-xml > $@
+
include $(OSMO_GSM_MANUALS_DIR)/build/Makefile.vty-reference.inc
OSMO_REPOSITORY = osmo-pcu