[PATCH] osmo-iuh[master]: add doc/examples, Makefile.am adds all *.cfg files generically

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Neels Hofmeyr gerrit-no-reply at lists.osmocom.org
Thu Aug 18 14:29:50 UTC 2016


Review at  https://gerrit.osmocom.org/721

add doc/examples, Makefile.am adds all *.cfg files generically

doc/examples/Makefile.am taken from openbsc/openbsc/doc/examples.

Change-Id: I1fadad4deb7f73d2b3aa753a84a76ba5b9bf9574
---
M configure.ac
M doc/Makefile.am
A doc/examples/Makefile.am
3 files changed, 26 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-iuh refs/changes/21/721/1

diff --git a/configure.ac b/configure.ac
index 2ca32b1..c3a65d6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -43,4 +43,5 @@
 	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

-- 
To view, visit https://gerrit.osmocom.org/721
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1fadad4deb7f73d2b3aa753a84a76ba5b9bf9574
Gerrit-PatchSet: 1
Gerrit-Project: osmo-iuh
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: neels_test_account <neels at hofmeyr.de>



More information about the gerrit-log mailing list