diff options
author | Harald Welte <laforge@osmocom.org> | 2020-06-30 21:37:30 +0200 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2020-06-30 21:40:52 +0200 |
commit | 171e7a3a067cd362b9770388d0542d5a50ab876a (patch) | |
tree | aa52f03e43777beee56ad195d63c8293f4d15b5d | |
parent | de22257ee1e948867491a0c046bdb8f461866937 (diff) |
add example configurations
Change-Id: I25c28f7a1eeb4deaebba3b2fd593cbbdceb1fa07
-rw-r--r-- | Makefile.am | 2 | ||||
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | doc/Makefile.am | 3 | ||||
-rw-r--r-- | doc/examples/Makefile.am | 32 | ||||
-rw-r--r-- | doc/examples/osmo-e1d-vpair.cfg | 2 | ||||
-rw-r--r-- | doc/examples/osmo-e1d.cfg | 0 |
6 files changed, 41 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index 9862cd8..029b599 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,12 +1,14 @@ AUTOMAKE_OPTIONS = foreign dist-bzip2 SUBDIRS = \ + doc \ src \ include \ $(NULL) EXTRA_DIST = \ .version \ + doc \ $(NULL) pkgconfigdir = $(libdir)/pkgconfig diff --git a/configure.ac b/configure.ac index 5be845b..0320b6f 100644 --- a/configure.ac +++ b/configure.ac @@ -74,6 +74,8 @@ fi AC_OUTPUT( Makefile + doc/Makefile + doc/examples/Makefile src/Makefile include/Makefile libosmo-e1d.pc diff --git a/doc/Makefile.am b/doc/Makefile.am new file mode 100644 index 0000000..8acb8f8 --- /dev/null +++ b/doc/Makefile.am @@ -0,0 +1,3 @@ +SUBDIRS = \ + examples \ + $(NULL) diff --git a/doc/examples/Makefile.am b/doc/examples/Makefile.am new file mode 100644 index 0000000..9fd345c --- /dev/null +++ b/doc/examples/Makefile.am @@ -0,0 +1,32 @@ +OSMOCONF_FILES = \ + osmo-e1d.cfg \ + osmo-e1d-vpair.cfg \ + $(NULL) + +osmoconfdir = $(sysconfdir)/osmocom +osmoconf_DATA = $(OSMOCONF_FILES) + +EXTRA_DIST = $(OSMOCONF_FILES) + +CFG_FILES = find $(srcdir) -name '*.cfg*' | sed -e 's,^$(srcdir),,' + +dist-hook: + for f in $$($(CFG_FILES)); do \ + j="$(distdir)/$$f" && \ + mkdir -p "$$(dirname $$j)" && \ + $(INSTALL_DATA) $(srcdir)/$$f $$j; \ + done + +install-data-hook: + for f in $$($(CFG_FILES)); do \ + j="$(DESTDIR)$(docdir)/examples/$$f" && \ + mkdir -p "$$(dirname $$j)" && \ + $(INSTALL_DATA) $(srcdir)/$$f $$j; \ + done + +uninstall-hook: + @$(PRE_UNINSTALL) + for f in $$($(CFG_FILES)); do \ + j="$(DESTDIR)$(docdir)/examples/$$f" && \ + $(RM) $$j; \ + done diff --git a/doc/examples/osmo-e1d-vpair.cfg b/doc/examples/osmo-e1d-vpair.cfg new file mode 100644 index 0000000..32742de --- /dev/null +++ b/doc/examples/osmo-e1d-vpair.cfg @@ -0,0 +1,2 @@ + +virtual-e1-pair 1 diff --git a/doc/examples/osmo-e1d.cfg b/doc/examples/osmo-e1d.cfg new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/doc/examples/osmo-e1d.cfg |