diff --git a/Makefile b/Makefile index 0ef0942..34c18ad 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,3 @@ -LIBOSMO_DIR ?= ~/source/gsm/libosmocore - all: check-deps cd OsmoBTS; $(MAKE) cd OsmoNITB; $(MAKE) @@ -80,9 +78,6 @@ endef define check_dep_python2_module @echo "import $(1)" | python2 - >/dev/null 2>&1 || { echo >&2 "Failed to import '$(1)' module, please install $(2)."; exit 1; } endef -define check_dep_dir - @test -d $(1) || { echo >&2 "Directory '$(1)' not found, please set $(2) to the path of your libosmocom source tree: make LIBOSMO_DIR=/path/to/libosmocore"; exit 1; } -endef check-deps: $(call check_dep_bin,mscgen,mscgen) @@ -95,4 +90,3 @@ check-deps: $(call check_dep_bin,dot,graphviz) $(call check_dep_bin,python2,python2) $(call check_dep_python2_module,pychart,python2-pychart) - $(call check_dep_dir,$(LIBOSMO_DIR),LIBOSMO_DIR) diff --git a/build/Makefile.vty-reference.inc b/build/Makefile.vty-reference.inc index 6607ae5..1528d32 100644 --- a/build/Makefile.vty-reference.inc +++ b/build/Makefile.vty-reference.inc @@ -25,8 +25,7 @@ DOCBOOKS = $(VTY_REFERENCE) DOCBOOKS_DEPS = generated/docbook_vty.xml include $(TOPDIR)/build/Makefile.docbook.inc -LIBOSMO_DIR ?= ~/source/gsm/libosmocore -MERGE_DOC = $(shell realpath $(LIBOSMO_DIR)/doc/vty/merge_doc.xsl) +MERGE_DOC = $(shell realpath $(TOPDIR)/merge_doc.xsl) CLEAN_FILES += generated diff --git a/merge_doc.xsl b/merge_doc.xsl new file mode 100644 index 0000000..d75c499 --- /dev/null +++ b/merge_doc.xsl @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +