aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-09-05 22:24:45 +0200
committerHarald Welte <laforge@gnumonks.org>2017-09-05 22:26:12 +0200
commit1bd3a9f25ec7b6b4aee6405431102f3d1c2a1031 (patch)
tree0722d438a345f072f2245bacf795c4714401ad39
parente9e45ac7c7f34ccd16c77bf9821d1eeb39c89feb (diff)
Move examples to doc/examples and include them in DIST
-rw-r--r--configure.ac1
-rw-r--r--contrib/osmo-ggsn.init (renamed from examples/osmo-ggsn.init)0
-rw-r--r--doc/Makefile.am5
-rw-r--r--doc/examples/Makefile.am22
-rwxr-xr-xdoc/examples/firewall (renamed from examples/firewall)0
-rw-r--r--doc/examples/osmo-ggsn.cfg (renamed from examples/osmo-ggsn.cfg)0
-rw-r--r--doc/examples/sgsnemu.conf (renamed from examples/sgsnemu.conf)0
7 files changed, 26 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index c19eedc..19548d1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -137,6 +137,7 @@ PKG_CHECK_MODULES(LIBOSMOCTRL, libosmoctrl)
AC_CONFIG_FILES([Makefile
doc/Makefile
+ doc/examples/Makefile
ggsn/Makefile
gtp/Makefile
lib/Makefile
diff --git a/examples/osmo-ggsn.init b/contrib/osmo-ggsn.init
index 2deb378..2deb378 100644
--- a/examples/osmo-ggsn.init
+++ b/contrib/osmo-ggsn.init
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 7e2246c..46c634e 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -2,5 +2,6 @@ man_MANS = osmo-ggsn.8 sgsnemu.8
man_aux = $(man_MANS:.1=.x)
EXTRA_DIST = $(man_MANS)
-
-
+SUBDIRS = \
+ examples \
+ $(NULL)
diff --git a/doc/examples/Makefile.am b/doc/examples/Makefile.am
new file mode 100644
index 0000000..530c3fa
--- /dev/null
+++ b/doc/examples/Makefile.am
@@ -0,0 +1,22 @@
+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/examples/firewall b/doc/examples/firewall
index fce735a..fce735a 100755
--- a/examples/firewall
+++ b/doc/examples/firewall
diff --git a/examples/osmo-ggsn.cfg b/doc/examples/osmo-ggsn.cfg
index 763e561..763e561 100644
--- a/examples/osmo-ggsn.cfg
+++ b/doc/examples/osmo-ggsn.cfg
diff --git a/examples/sgsnemu.conf b/doc/examples/sgsnemu.conf
index 43b2458..43b2458 100644
--- a/examples/sgsnemu.conf
+++ b/doc/examples/sgsnemu.conf