trxcon: Makefile.am: fix make {dist,distcheck} targets

File '.version' must be also listed in EXTRA_DIST, otherwise I get:

  echo 0.0.0 > ../../.version-t && mv ../../.version-t ../../.version
  /bin/sh: line 1: ../../.version-t: Permission denied

Change-Id: I65f7c505f5a231bab114c45f5fdd7421601dfbc0
Related: OS#5599, OS#3761
This commit is contained in:
Vadim Yanitskiy 2022-07-01 19:04:26 +07:00
parent d75cc116e2
commit 57ce62f4bc
1 changed files with 7 additions and 1 deletions

View File

@ -44,8 +44,14 @@ trxcon_LDADD = \
$(LIBOSMOGSM_LIBS) \
$(NULL)
BUILT_SOURCES = \
$(top_srcdir)/.version \
$(NULL)
EXTRA_DIST = \
.version \
$(NULL)
# versioning magic
BUILT_SOURCES = $(top_srcdir)/.version
$(top_srcdir)/.version:
echo $(VERSION) > $@-t && mv $@-t $@
dist-hook: