summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
Diffstat (limited to 'java')
-rw-r--r--java/Makefile.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/java/Makefile.in b/java/Makefile.in
index 3b06fc1d4cc..84173cd9655 100644
--- a/java/Makefile.in
+++ b/java/Makefile.in
@@ -233,7 +233,8 @@ install_temp/assets/directory-tree: $(libsrc)/asset-directory-tool \
install_temp/assets/directory-tree
install_temp/assets/version: install_temp
- $(AM_V_GEN) { (git rev-parse HEAD || echo "Unknown") \
+ $(AM_V_GEN) { (cd $(top_srcdir) \
+ && git rev-parse HEAD || echo "Unknown") \
&& (git rev-parse --abbrev-ref HEAD \
|| echo "Unknown") } 2> /dev/null > $@