about summary refs log tree commit diff
path: root/local.mk
diff options
context:
space:
mode:
authorJohn Ericson <Ericson2314@Yahoo.com>2015-10-15T18·29-0700
committerJohn Ericson <Ericson2314@Yahoo.com>2015-10-15T18·53-0700
commita7dd26961db0a08ff628ed1e72048c65128b9ca1 (patch)
tree4b81d4527825aac5e0f6c74c4c3f26848d9eb36c /local.mk
parent164487a5ba568fa344fae9f4b9515b351da430b6 (diff)
Don't depend on git when generating source tarball
Diffstat (limited to 'local.mk')
-rw-r--r--local.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/local.mk b/local.mk
index 160057ad26..2541f3f322 100644
--- a/local.mk
+++ b/local.mk
@@ -1,5 +1,6 @@
 ifeq ($(MAKECMDGOALS), dist)
-  dist-files += $(shell git ls-files)
+  # Make sure we are in repo root with `--git-dir`
+  dist-files += $(shell git --git-dir=.git ls-files || find * -type f)
 endif
 
 dist-files += configure config.h.in nix.spec