v01d commented on a change in pull request #1843:
URL: https://github.com/apache/incubator-nuttx/pull/1843#discussion_r491481823



##########
File path: tools/Config.mk
##########
@@ -458,7 +458,8 @@ define CLEAN
 endef
 else
 define CLEAN
-       $(Q) rm -f *$(OBJEXT) *$(LIBEXT) *~ .*.swp
+       $(call DELFILE, $(wildcard $(foreach obj, $(OBJS), $(addsuffix /$(obj), 
$(subst :, ,$(VPATH))))))
+       $(call DELFILE, *$(OBJEXT) *$(LIBEXT) *~ .*.swp)

Review comment:
       But $(OBJS) will always include the objects for current directory. As I 
mentioned, if you only remove $(OBJS) no stray objects remain (unless you 
reconfigure in the middle). Maybe distclean should use a separate macro that 
uses the wildcard, however it should also recurse into every subdirectory if we 
do not want ANY .o remaining.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to