Skip to contentSkip to conversation

tools/counter: Makefile: Remove lingering 'include' when make clean

PATCH Applied Rong Tao 3 participants 4 messages Apr 22, 2023 – Apr 23, 2023

Subsystems (2)
lore
Share & tools
lore

Rong Tao

author
#0 lore raw

PATCH v2 1/1 tools/counter: Makefile: Remove lingering 'include' when make clean

From: Rong Tao <[email protected]>

'make' create 'include' directory, we should remove it when 'make clean'.

---
v2: this commit, according to William Breathitt Gray's suggession in v1
v1: https://lore.kernel.org/lkml/[email protected]/

---
 tools/counter/Makefile | 1 +
 1 file changed, 1 insertion(+)
tools/counter/Makefile +1 -0
index 8843f0fa6119..a0f4cab71fe5 100644
@@ -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)
Signature · 1 line
2.40.0
#1 lore raw
Quoted 5 lines · Rong Tao

From: Rong Tao <[email protected]>

'make' create 'include' directory, we should remove it when 'make clean'.

Hi Rong,

The code changes in this v2 are acceptable for me now, but I would like the commit description typos fixed. I can fix it myself when I apply this patch so that you don't need to submit a v3. Would you be okay if I did that?

William Breathitt Gray

author
#2 lore raw

Hi, William,

Of course it's okay, thanks.

Rong Tao