From 5a29c7fa895a14112a1ac65e541f4b87ae9dba04 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Tue, 23 Mar 2010 00:09:32 +0800 Subject: automatically include program version and print it from vty and --version --- openbsc/Makefile.am | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'openbsc/Makefile.am') diff --git a/openbsc/Makefile.am b/openbsc/Makefile.am index 7acae7512..4ce11cec5 100644 --- a/openbsc/Makefile.am +++ b/openbsc/Makefile.am @@ -6,5 +6,8 @@ SUBDIRS = include src tests pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = openbsc.pc libsccp.pc -#dist-hook: -# rm -rf `find $(distdir) -name .svn` +BUILT_SOURCES = $(top_srcdir)/.version +$(top_srcdir)/.version: + echo $(VERSION) > $@-t && mv $@-t $@ +dist-hook: + echo $(VERSION) > $(distdir)/.tarball-version -- cgit v1.2.3