diff options
author | Harald Welte <laforge@gnumonks.org> | 2010-03-23 00:30:19 +0800 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2010-03-23 00:30:19 +0800 |
commit | 4cd3d8a2c7982ba11d05d2500b1bfca44f440d1e (patch) | |
tree | cec81b69c6f48ff6e13713f80d5545bcaf60191a /Makefile.am | |
parent | 505117b778843fc9f177db428c58f3ae606c2181 (diff) |
add git-version-gen magic to automatically generate package version
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 7 |
1 files changed, 7 insertions, 0 deletions
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 |