add example configurations

Change-Id: I25c28f7a1eeb4deaebba3b2fd593cbbdceb1fa07
This commit is contained in:
Harald Welte 2020-06-30 21:37:30 +02:00
parent de22257ee1
commit 171e7a3a06
6 changed files with 41 additions and 0 deletions

View File

@ -1,12 +1,14 @@
AUTOMAKE_OPTIONS = foreign dist-bzip2
SUBDIRS = \
doc \
src \
include \
$(NULL)
EXTRA_DIST = \
.version \
doc \
$(NULL)
pkgconfigdir = $(libdir)/pkgconfig

View File

@ -74,6 +74,8 @@ fi
AC_OUTPUT(
Makefile
doc/Makefile
doc/examples/Makefile
src/Makefile
include/Makefile
libosmo-e1d.pc

3
doc/Makefile.am Normal file
View File

@ -0,0 +1,3 @@
SUBDIRS = \
examples \
$(NULL)

32
doc/examples/Makefile.am Normal file
View File

@ -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

View File

@ -0,0 +1,2 @@
virtual-e1-pair 1

View File