Welcome to little lamb

Code » comain » commit fe9eba5

common.mk: Clean binary-specific dependencies

author Olivier Brunel
2023-01-25 13:56:36 UTC
committer Olivier Brunel
2023-01-25 13:56:36 UTC
parent f8f8843d5a991e66f7f6c5579c18fbf99d5c07f1

common.mk: Clean binary-specific dependencies

Might be rare, but it can happen. When it does, make sure to clean them
up.

(Happens e.g. with asm optimizations of BLAKE3 official implementation
in test-hashes)

common.mk +3 -0

diff --git a/common.mk b/common.mk
index b3cdbc0..b1526ef 100644
--- a/common.mk
+++ b/common.mk
@@ -56,6 +56,9 @@ include project.mk
 # created upon compiling
 -include $(DEPS)
 
+# binary-specific deps
+DEPS += $(BINS:%=%.d)
+
 # install binaries
 $(DESTDIR)$(BINDIR)/%: %
 	$(_INST) install -D -m 755 $< $@