about summary refs log tree commit diff
path: root/local.mk
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2015-10-26T10·14+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2015-10-26T10·14+0100
commitf6a224bd68f739ef9825df474d4b4f3379a5296b (patch)
tree37fd9a1def8b01cd7120fdb27ad61ddae2bfc21d /local.mk
parent45b2f32cc1f1ef3623630427f37a0b0d0093d53e (diff)
parenta7dd26961db0a08ff628ed1e72048c65128b9ca1 (diff)
Merge pull request #667 from Ericson2314/mk-dist
Don't depend on .git/ when generating source tarball V2
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 160057ad2625..2541f3f32290 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