Skip to content

Commit d02c2ae

Browse files
rbmarlierepevik
authored andcommitted
Makefile: Fix circular dependency in distclean target
When calling the `make distclean` target, we see this: make: Circular include-clean <- distclean dependency dropped. Fix it by adding distclean to INCLUDE_CLEAN_RDEP_SUBJECT first condition filter. Link: https://lore.kernel.org/ltp/[email protected]/ Reviewed-by: Petr Vorel <[email protected]> Signed-off-by: Ricardo B. Marlière <[email protected]>
1 parent 011c29c commit d02c2ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ $(filter-out include-clean,$(CLEAN_TARGETS))::
9696

9797
# Just like everything depends on include-all / -install, we need to get rid
9898
# of include last to ensure that things won't be monkey screwed up. Only do
99-
# this if we're invoking clean or a subclean directly though.
100-
ifneq ($(filter clean,$(MAKECMDGOALS)),)
99+
# this if we're invoking clean, distclean or a subclean directly though.
100+
ifneq ($(filter clean distclean,$(MAKECMDGOALS)),)
101101
INCLUDE_CLEAN_RDEP_SUBJECT := $(CLEAN_TARGETS)
102102
else
103103
ifneq ($(filter %clean,$(MAKECMDGOALS)),)

0 commit comments

Comments
 (0)