summaryrefslogtreecommitdiff
path: root/scripts/makefile.build
diff options
context:
space:
mode:
authorKacper <kacper@mail.openlinux.dev>2025-12-16 11:48:29 +0100
committerKacper <kacper@mail.openlinux.dev>2025-12-16 11:48:29 +0100
commit383b4ca16cfd6d99de7335facad9a9f8eaf43341 (patch)
treed63519cf5b00c2b8f0d1b83a86bd618d98819e0c /scripts/makefile.build
parent9dc8eb052e04ec2daec10df936f4b96bb25be498 (diff)
Fix cleaning dependency files in makefile.build
Diffstat (limited to 'scripts/makefile.build')
-rw-r--r--scripts/makefile.build4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/makefile.build b/scripts/makefile.build
index 7049d19c..6467d2ad 100644
--- a/scripts/makefile.build
+++ b/scripts/makefile.build
@@ -90,8 +90,10 @@ endif
PHONY += clean clean-%
clean: $(addprefix clean-,$(subdirs))
+ifdef deps
+ $(Q)rm -f $(addprefix $(obj),$(deps))
+endif
ifdef targets
- $(info Cleaning targets: $(targets))
$(Q)rm -f $(addprefix $(obj),$(targets))
endif
ifdef all-objects