aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2016-08-18 16:11:37 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2016-08-18 16:16:08 +0200
commit01c71fc2dd3c3545a5a3f0d83391a28590dc9f69 (patch)
treeecc46b7eefaf9560978e6205c10b9e59eb039523
parent4d91ab277b4acc1bc2bdb5edc81d8c09b2bd3e47 (diff)
add doc/examples, Makefile.am adds all *.cfg files generically
doc/examples/Makefile.am taken from openbsc/openbsc/doc/examples. Change-Id: I1fadad4deb7f73d2b3aa753a84a76ba5b9bf9574
-rw-r--r--configure.ac1
-rw-r--r--doc/Makefile.am2
-rw-r--r--doc/examples/Makefile.am23
3 files changed, 26 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 2ca32b1..c3a65d6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -43,4 +43,5 @@ AC_OUTPUT(
include/osmocom/rua/Makefile
include/osmocom/iuh/Makefile
doc/Makefile
+ doc/examples/Makefile
)
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 6974e89..81a25e2 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -1,3 +1,5 @@
+SUBDIRS = examples
+
EXTRA_DIST = \
hnb_cs_lu.msc \
hnb_cs_mo_call.msc \
diff --git a/doc/examples/Makefile.am b/doc/examples/Makefile.am
new file mode 100644
index 0000000..8f14fdc
--- /dev/null
+++ b/doc/examples/Makefile.am
@@ -0,0 +1,23 @@
+
+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