From 2de3f95bcdc200745b95483da7972386c74b8962 Mon Sep 17 00:00:00 2001 From: Nate Bargmann Date: Wed, 27 May 2020 07:54:09 -0500 Subject: [PATCH] Ensure hamlibdatetime.h works with VPATH builds --- tests/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index c99f96cf1..b6cd7cdba 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -98,8 +98,8 @@ testloc.sh: # If we have a .git directory then we will update the hamlibdate.h file hamlibdatetime.h: FORCE - test ! -x ../.git || echo // This date time is from the last commit to hamlib > hamlibdatetime.h - test ! -x ../.git || echo "#define HAMLIBDATETIME "\"`git log -n 1 | grep Date:|cut -c9-`"\"" >> hamlibdatetime.h + test ! -x $(top_srcdir)/.git || echo // This date time is from the last commit to hamlib > $(builddir)/hamlibdatetime.h + test ! -x $(top_srcdir)/.git || echo "#define HAMLIBDATETIME "\"$$(git --git-dir=$(top_srcdir)/.git log -n 1 | grep Date:|cut -c9-)"\"" >> $(builddir)/hamlibdatetime.h FORCE: ;