build-sys: Fix version directory

.version needs to be generated into the build directory not the
source directory.

Signed-off-by: Craig Small <csmall@dropbear.xyz>
This commit is contained in:
Craig Small 2021-01-21 21:01:33 +11:00
parent ddce2c3cc9
commit 4aae73e33c

View File

@ -351,11 +351,13 @@ sysconf_DATA = sysctl.conf
endif
endif
BUILT_SOURCES = $(top_srcdir)/.version
BUILT_SOURCES = .version
$(top_srcdir)/.version:
touch $(top_srcdir)/.version
CLEANFILES = .version
.version:
echo $(VERSION) > $@-t && mv $@-t $@
dist-hook:
echo $(VERSION) > $(distdir)/.tarball-version