X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=Makefile;h=a5a74fedef110475421f9883b82ec0f6bb46566e;hb=0398adf20f4240f87ea33b975336ac3150b08707;hp=67c40e5a146e97edde673934c36ecd70f7547f56;hpb=d06f5690fab526c4a4a8a4d55f9c4e675d883be9;p=bcachefs-tools-debian diff --git a/Makefile b/Makefile index 67c40e5..a5a74fe 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ PREFIX?=/usr/local PKG_CONFIG?=pkg-config INSTALL=install -CFLAGS+=-std=gnu89 -O2 -g -MMD -Wall -fPIC \ +CFLAGS+=-std=gnu89 -O2 -g -MMD -Wall -fPIC \ -Wno-pointer-sign \ -fno-strict-aliasing \ -fno-delete-null-pointer-checks \ @@ -47,7 +47,7 @@ CFLAGS+=$(call cc-disable-warning, zero-length-array) CFLAGS+=$(call cc-disable-warning, shift-overflow) CFLAGS+=$(call cc-disable-warning, enum-conversion) -PKGCONFIG_LIBS="blkid uuid liburcu libsodium zlib liblz4 libzstd libudev" +PKGCONFIG_LIBS="blkid uuid liburcu libsodium zlib liblz4 libzstd libudev libkeyutils" ifdef BCACHEFS_FUSE PKGCONFIG_LIBS+="fuse3 >= 3.7" CFLAGS+=-DBCACHEFS_FUSE @@ -76,7 +76,7 @@ else endif .PHONY: all -all: bcachefs bcachefs.5 lib +all: bcachefs lib .PHONY: lib lib: libbcachefs.so @@ -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) @@ -163,8 +163,9 @@ clean: deb: all debuild -us -uc -nc -b -i -I -bcachefs-principles-of-operation.pdf: bcachefs-principles-of-operation.tex - pdflatex bcachefs-principles-of-operation.tex && pdflatex bcachefs-principles-of-operation.tex +bcachefs-principles-of-operation.pdf: doc/bcachefs-principles-of-operation.tex + pdflatex doc/bcachefs-principles-of-operation.tex + pdflatex doc/bcachefs-principles-of-operation.tex doc: bcachefs-principles-of-operation.pdf @@ -188,12 +189,22 @@ update-bcachefs-sources: git add include/linux/list_nulls.h cp $(LINUX_DIR)/include/linux/poison.h include/linux/ git add include/linux/poison.h + cp $(LINUX_DIR)/include/linux/generic-radix-tree.h include/linux/ + git add include/linux/generic-radix-tree.h + cp $(LINUX_DIR)/lib/generic-radix-tree.c linux/ + git add linux/generic-radix-tree.c + cp $(LINUX_DIR)/include/linux/kmemleak.h include/linux/ + git add include/linux/kmemleak.h + cp $(LINUX_DIR)/include/linux/printbuf.h include/linux/ + git add include/linux/printbuf.h + cp $(LINUX_DIR)/lib/printbuf.c linux/ + git add linux/printbuf.c cp $(LINUX_DIR)/scripts/Makefile.compiler ./ git add Makefile.compiler $(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