Makefile.am: generate missing .version file

Change-Id: Id0cd2debf9b2d120c6dec1e534eefc4fe0a4210f
changes/59/28959/2
Vadim Yanitskiy 2 months ago
parent a1f1128be5
commit 559c9c219c
  1. 5
      .gitignore
  2. 8
      Makefile.am

5
.gitignore vendored

@ -42,8 +42,11 @@ tests/emu/pcu_emu
tests/testsuite
tests/testsuite.log
# ignore debian files
# git-version-gen magic
.tarball-version
.version
# ignore debian files
debian/autoreconf.after
debian/autoreconf.before
debian/files

@ -1,7 +1,10 @@
AUTOMAKE_OPTIONS = foreign dist-bzip2 1.6
SUBDIRS = include src doc tests contrib
BUILT_SOURCES = $(top_srcdir)/.version
EXTRA_DIST = \
.version \
README.md \
contrib/osmo-pcu.spec.in \
debian \
@ -12,3 +15,8 @@ AM_DISTCHECK_CONFIGURE_FLAGS = \
--with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
@RELMAKE@
$(top_srcdir)/.version:
echo $(VERSION) > $@-t && mv $@-t $@
dist-hook:
echo $(VERSION) > $(distdir)/.tarball-version

Loading…
Cancel
Save