manuals: generate vty reference xml at build time

Move 'doc' subdir further down to "make sure" the osmo-hlr binary is built
before the docs.

Remove hlr_vty_reference.xml from the source tree.

In manuals/Makefile.am use the new BUILT_REFERENCE_XML feature recently added
to osmo-gsm-manuals, and add a build target to generate the XML using the new
osmo-hlr --vty-ref-xml cmdline switch.

Depends: I613d692328050a036d05b49a436ab495fc2087ba (osmo-gsm-manuals)
Change-Id: I99e61274e2ceb2c1fe5fb05bb99e1ec19695ad92
This commit is contained in:
Neels Hofmeyr
2020-06-19 23:27:40 +02:00
parent 1b40a93031
commit b53ea78009
3 changed files with 6 additions and 1432 deletions

View File

@@ -1,11 +1,11 @@
AUTOMAKE_OPTIONS = foreign dist-bzip2
SUBDIRS = \
doc \
src \
include \
sql \
contrib \
doc \
tests \
$(NULL)

View File

@@ -16,6 +16,11 @@ if BUILD_MANUALS
VTY_REFERENCE = osmohlr-vty-reference.xml
include $(OSMO_GSM_MANUALS_DIR)/build/Makefile.vty-reference.inc
BUILT_REFERENCE_XML = $(builddir)/vty/hlr_vty_reference.xml
$(builddir)/vty/hlr_vty_reference.xml: $(top_builddir)/src/osmo-hlr
mkdir -p $(builddir)/vty
$(top_builddir)/src/osmo-hlr --vty-ref-xml > $@
OSMO_REPOSITORY = osmo-hlr
include $(OSMO_GSM_MANUALS_DIR)/build/Makefile.common.inc
endif

File diff suppressed because it is too large Load Diff