examples: automatically copy all examples in dist and install it to docdir

changes/88/3188/1
Harald Welte 12 years ago
parent 88b6a1fa80
commit eb113137c8
  1. 2
      openbsc/Makefile.am
  2. 2
      openbsc/configure.in
  3. 1
      openbsc/doc/Makefile.am
  4. 16
      openbsc/doc/examples/Makefile.am
  5. 0
      openbsc/doc/examples/osmo-bsc_mgcp/mgcp.cfg
  6. 0
      openbsc/doc/examples/osmo-nitb/bs11/openbsc-1bts-2trx-hopping.cfg
  7. 0
      openbsc/doc/examples/osmo-nitb/bs11/openbsc-1bts-2trx.cfg
  8. 0
      openbsc/doc/examples/osmo-nitb/bs11/openbsc-2bts-2trx.cfg
  9. 0
      openbsc/doc/examples/osmo-nitb/bs11/openbsc.cfg
  10. 0
      openbsc/doc/examples/osmo-nitb/nanobts/openbsc-multitrx.cfg
  11. 0
      openbsc/doc/examples/osmo-nitb/nanobts/openbsc.cfg
  12. 0
      openbsc/doc/examples/osmo-nitb/rbs2308/openbsc.cfg

@ -1,7 +1,7 @@
AUTOMAKE_OPTIONS = foreign dist-bzip2 1.6
INCLUDES = $(all_includes) -I$(top_srcdir)/include
SUBDIRS = include src tests
SUBDIRS = doc include src tests
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = openbsc.pc

@ -110,4 +110,6 @@ AC_OUTPUT(
tests/channel/Makefile
tests/bsc-nat/Makefile
tests/mgcp/Makefile
doc/Makefile
doc/examples/Makefile
Makefile)

@ -0,0 +1 @@
SUBDIRS = examples

@ -0,0 +1,16 @@
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
Loading…
Cancel
Save