From 4cd3d8a2c7982ba11d05d2500b1bfca44f440d1e Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Tue, 23 Mar 2010 00:30:19 +0800 Subject: add git-version-gen magic to automatically generate package version --- Makefile.am | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 8007b745..2adf5023 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,7 +1,14 @@ AUTOMAKE_OPTIONS = foreign dist-bzip2 1.6 +ACLOCAL_AMFLAGS = -I m4 INCLUDES = $(all_includes) -I$(top_srcdir)/include SUBDIRS = include src tests pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = libosmocore.pc + +BUILT_SOURCES = $(top_srcdir)/.version +$(top_srcdir)/.version: + echo $(VERSION) > $@-t && mv $@-t $@ +dist-hook: + echo $(VERSION) > $(distdir)/.tarball-version -- cgit v1.2.3