From a7dd26961db0a08ff628ed1e72048c65128b9ca1 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Thu, 15 Oct 2015 11:29:38 -0700 Subject: Don't depend on git when generating source tarball --- local.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'local.mk') 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 -- cgit 1.4.1