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 <aseipp@pobox.com>
.PHONY: all
all: bcachefs
-SRCS=$(shell git ls-files '*.c')
+SRCS=$(shell find . -type f -iname '*.c')
DEPS=$(SRCS:.c=.d)
-include $(DEPS)