From 4aae73e33c7fed4caba24ca17a74ec12242e8b72 Mon Sep 17 00:00:00 2001 From: Craig Small Date: Thu, 21 Jan 2021 21:01:33 +1100 Subject: [PATCH] build-sys: Fix version directory .version needs to be generated into the build directory not the source directory. Signed-off-by: Craig Small --- Makefile.am | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index 4a005778..f7307300 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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