mirror of
https://github.com/torvalds/linux
synced 2024-11-03 01:56:01 +00:00
tools/counter: Makefile: Replace rmdir by rm to avoid make,clean failure
Use rm -df instead of rmdir -p since rmdir requires the directory exist
so it causes "make -C tools clean" failed if someone only builds other
tools but not counter.
Fixes: 228354ed69
("tools/counter: Makefile: Remove lingering 'include' directories on make clean")
Signed-off-by: Anh Tuan Phan <tuananhlfc@gmail.com>
Link: https://lore.kernel.org/r/d4080db5-1825-2848-079a-8bb674d8ee44@gmail.com/
Signed-off-by: William Breathitt Gray <william.gray@linaro.org>
This commit is contained in:
parent
272ffb925e
commit
aead78125a
1 changed files with 2 additions and 1 deletions
|
@ -40,7 +40,8 @@ $(OUTPUT)counter_example: $(COUNTER_EXAMPLE)
|
||||||
clean:
|
clean:
|
||||||
rm -f $(ALL_PROGRAMS)
|
rm -f $(ALL_PROGRAMS)
|
||||||
rm -rf $(OUTPUT)include/linux/counter.h
|
rm -rf $(OUTPUT)include/linux/counter.h
|
||||||
rmdir -p $(OUTPUT)include/linux
|
rm -df $(OUTPUT)include/linux
|
||||||
|
rm -df $(OUTPUT)include
|
||||||
find $(or $(OUTPUT),.) -name '*.o' -delete -o -name '\.*.d' -delete
|
find $(or $(OUTPUT),.) -name '*.o' -delete -o -name '\.*.d' -delete
|
||||||
|
|
||||||
install: $(ALL_PROGRAMS)
|
install: $(ALL_PROGRAMS)
|
||||||
|
|
Loading…
Reference in a new issue