From 04035f0c7eaf26ef0a74e36e0edf1adddecb62b5 Mon Sep 17 00:00:00 2001 From: Austin Seipp Date: Sun, 26 Nov 2017 00:55:12 -0600 Subject: [PATCH] build: use 'find', not 'git', to locate C source code We will not always have .git available in some cases. For example, if someone simply downloaded a tarball of the tree, or if we're building with something like Nix and want to exclude the .git folder, we need to cope and build the source anyway. Signed-off-by: Austin Seipp --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a5ea2d0a..6538fe78 100644 --- a/Makefile +++ b/Makefile @@ -44,7 +44,7 @@ endif .PHONY: all all: bcachefs -SRCS=$(shell git ls-files '*.c') +SRCS=$(shell find . -type f -iname '*.c') DEPS=$(SRCS:.c=.d) -include $(DEPS)