summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2017-08-28 13:08:55 +0200
committerHarald Welte <laforge@gnumonks.org>2017-08-29 12:48:25 +0000
commite747a9b9231e286f4bc72848e039aaa9d76b269d (patch)
treed62fb33abb3e5756a9b66a5a94e6b0cd986cb6e6
parentc9fec2af85587435248bc9bb9e1ce8d295860977 (diff)
Use release helper from libosmocore
See https://osmocom.org/projects/cellular-infrastructure/wiki/Make_a_new_release for details. Change-Id: I460fd73230facbba3e326214e46c0b98b7491628 Related: OS#1861
-rw-r--r--openbsc/Makefile.am3
-rw-r--r--openbsc/configure.ac4
2 files changed, 7 insertions, 0 deletions
diff --git a/openbsc/Makefile.am b/openbsc/Makefile.am
index 31a54ea06..dc5392907 100644
--- a/openbsc/Makefile.am
+++ b/openbsc/Makefile.am
@@ -20,6 +20,9 @@ pkgconfig_DATA = openbsc.pc
BUILT_SOURCES = $(top_srcdir)/.version
EXTRA_DIST = git-version-gen osmoappdesc.py .version
+
+@RELMAKE@
+
$(top_srcdir)/.version:
echo $(VERSION) > $@-t && mv $@-t $@
dist-hook:
diff --git a/openbsc/configure.ac b/openbsc/configure.ac
index b15576963..48c5c822b 100644
--- a/openbsc/configure.ac
+++ b/openbsc/configure.ac
@@ -12,6 +12,10 @@ AC_CONFIG_TESTDIR(tests)
dnl kernel style compile messages
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
+dnl include release helper
+RELMAKE='-include osmo-release.mk'
+AC_SUBST([RELMAKE])
+
dnl checks for programs
AC_PROG_MAKE_SET
AC_PROG_CC