From 6a9a092eb25851e16ecacc04ca2b155635d4e52f Mon Sep 17 00:00:00 2001 From: Rong Tao Date: Sat, 22 Apr 2023 22:35:53 +0800 Subject: tools/counter: Add .gitignore Ignore counter_example and include/linux/counter.h. Signed-off-by: Rong Tao Link: https://lore.kernel.org/r/tencent_3E0341A1C9AC8FCB7915E7D791D117445707@qq.com/ Signed-off-by: William Breathitt Gray --- tools/counter/.gitignore | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 tools/counter/.gitignore (limited to 'tools') diff --git a/tools/counter/.gitignore b/tools/counter/.gitignore new file mode 100644 index 000000000000..9fd290d4bf43 --- /dev/null +++ b/tools/counter/.gitignore @@ -0,0 +1,2 @@ +/counter_example +/include/linux/counter.h -- cgit v1.2.3 From 228354ed692faa08f40f2630658c0771f77da457 Mon Sep 17 00:00:00 2001 From: Rong Tao Date: Sat, 22 Apr 2023 22:27:38 +0800 Subject: 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 --- tools/counter/Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'tools') diff --git a/tools/counter/Makefile b/tools/counter/Makefile index 8843f0fa6119..a0f4cab71fe5 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) -- cgit v1.2.3