aboutsummaryrefslogtreecommitdiffstats
path: root/src/vpp.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/vpp.am')
-rw-r--r--src/vpp.am4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vpp.am b/src/vpp.am
index 1d07b90a89e..5128e8ac302 100644
--- a/src/vpp.am
+++ b/src/vpp.am
@@ -55,8 +55,8 @@ vpp/app/version.h:
@echo "#define VPP_BUILD_DATE \"$$(date)\"" > $@
@echo "#define VPP_BUILD_USER \"$$(whoami)\"" >> $@
@echo "#define VPP_BUILD_HOST \"$$(hostname)\"" >> $@
- @echo "#define VPP_BUILD_TOPDIR \"$$(git rev-parse --show-toplevel)\"" >> $@
- @echo "#define VPP_BUILD_VER \"$$(../../scripts/version)\"" >> $@
+ @echo "#define VPP_BUILD_TOPDIR \"$$(cd $(srcdir) && git rev-parse --show-toplevel)\"" >> $@
+ @echo "#define VPP_BUILD_VER \"$$($(srcdir)/scripts/version)\"" >> $@
# Generate a plugin configuration script. Misconfiguring a
# plugin can cause very subtle problems.