summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel B. Hill <daniel@gluo.nz>2022-01-12 02:14:41 +1300
committerDaniel B. Hill <daniel@gluo.nz>2022-01-12 17:31:04 +1300
commit2c0d0c4b7b2484eaadf377f4a45d6b84a0680dcb (patch)
tree5406bd8235e32d80033978329215d61dc1bd2f18 /Makefile
parent74a7c3ff5732598431801bb0b4bd844f1d69aa90 (diff)
Makefile: We need to exclude hidden folders
Sometimes user-specific apps create .c files in hidden folders breaking make. Signed-off-by: Daniel B. Hill <daniel@gluo.nz>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 0b7738e3..e49534e6 100644
--- a/Makefile
+++ b/Makefile
@@ -99,7 +99,7 @@ TAGS:
tags:
ctags -R .
-SRCS=$(shell find . -type f -iname '*.c')
+SRCS=$(shell find . -type f ! -path '*/.*/*' -iname '*.c')
DEPS=$(SRCS:.c=.d)
-include $(DEPS)
@@ -150,7 +150,7 @@ install: bcachefs lib
$(INSTALL) -m0755 -D initramfs/hook $(DESTDIR)$(INITRAMFS_HOOK)
$(INSTALL) -m0755 -D mount.bcachefs.sh $(DESTDIR)$(ROOT_SBINDIR)
$(INSTALL) -m0755 -D libbcachefs.so -t $(DESTDIR)$(PREFIX)/lib/
-
+
sed -i '/^# Note: make install replaces/,$$d' $(DESTDIR)$(INITRAMFS_HOOK)
echo "copy_exec $(ROOT_SBINDIR)/bcachefs /sbin/bcachefs" >> $(DESTDIR)$(INITRAMFS_HOOK)
@@ -194,7 +194,7 @@ update-bcachefs-sources:
$(RM) libbcachefs/*.mod.c
git -C $(LINUX_DIR) rev-parse HEAD | tee .bcachefs_revision
git add .bcachefs_revision
-
+
.PHONY: update-commit-bcachefs-sources
update-commit-bcachefs-sources: update-bcachefs-sources