From: Rong Tao Date: Sat, 22 Apr 2023 14:27:38 +0000 (+0800) Subject: tools/counter: Makefile: Remove lingering 'include' directories on make clean X-Git-Tag: v6.5-rc1~77^2~60^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=228354ed692faa08f40f2630658c0771f77da457;p=thirdparty%2Flinux.git tools/counter: Makefile: Remove lingering 'include' directories on make clean `make` creates 'include' directories where necessary, so remove them as appropriate on `make clean`. Signed-off-by: Rong Tao Link: https://lore.kernel.org/r/tencent_F85E314661100B0CE2845EB27E2E2F558C09@qq.com/ Signed-off-by: William Breathitt Gray --- diff --git a/tools/counter/Makefile b/tools/counter/Makefile index 8843f0fa61199..a0f4cab71fe5f 100644 --- a/tools/counter/Makefile +++ b/tools/counter/Makefile @@ -40,6 +40,7 @@ $(OUTPUT)counter_example: $(COUNTER_EXAMPLE) clean: rm -f $(ALL_PROGRAMS) rm -rf $(OUTPUT)include/linux/counter.h + rmdir -p $(OUTPUT)include/linux find $(or $(OUTPUT),.) -name '*.o' -delete -o -name '\.*.d' -delete install: $(ALL_PROGRAMS)