From 53044df9d55533bde6df9a7f946ca4fade88fe42 Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 28 Aug 2017 12:05:57 +0200 Subject: [PATCH] Use release helper from libosmocore See https://osmocom.org/projects/cellular-infrastructure/wiki/Make_a_new_release for details. Change-Id: Iafe5905895a656b7055d58ca8f745fcfa4bd9886 Related: OS#1861 --- Makefile.am | 3 +++ configure.ac | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/Makefile.am b/Makefile.am index 798c092..6caa009 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4,6 +4,9 @@ SUBDIRS = include src contrib tests BUILT_SOURCES = $(top_srcdir)/.version EXTRA_DIST = git-version-gen .version + +@RELMAKE@ + $(top_srcdir)/.version: echo $(VERSION) > $@-t && mv $@-t $@ dist-hook: diff --git a/configure.ac b/configure.ac index 4c0a12f..b370e0d 100644 --- a/configure.ac +++ b/configure.ac @@ -9,6 +9,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