aboutsummaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2020-10-22 12:17:40 -0700
committerGitHub <noreply@github.com>2020-10-22 12:17:40 -0700
commit1ba1b8784fcde40d6eb9a9cca157454c9f8d2db3 (patch)
treeaf3f24a66c3c17e48e148f7fbf681ae3c7106eac /Makefile.am
parent3cf46af27110b4ffd75f09fac273b0ee46e8f36b (diff)
downloadriscv-openocd-1ba1b8784fcde40d6eb9a9cca157454c9f8d2db3.zip
riscv-openocd-1ba1b8784fcde40d6eb9a9cca157454c9f8d2db3.tar.gz
riscv-openocd-1ba1b8784fcde40d6eb9a9cca157454c9f8d2db3.tar.bz2
Fix build outside of a git repo. (#551)
Change-Id: Idc8b1428afeaa37140d1278ee4824c29157b0061 Signed-off-by: Tim Newsome <tim@sifive.com>
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index fcfd554..36f6c4f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -121,8 +121,10 @@ distclean-local:
# Travis, because it automatically makes temporary commits when merging. So
# instead we have a hook that enforces this in each workspace. To make sure
# that users actually use those hooks, we point git at them here.
+# If git fails for some reason, that's OK. It's probably because somebody is
+# building the source completely outside a git repo.
all-local:
- cd $(srcdir) && git config core.hooksPath ./git-hooks
+ cd $(srcdir) && git config core.hooksPath ./git-hooks || true
DISTCLEANFILES = doxygen.log