]> xenbits.xensource.com Git - people/royger/xen-test-framework.git/commitdiff
Add to clean/distclean rules
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 7 Dec 2015 17:38:26 +0000 (17:38 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 7 Dec 2015 17:38:26 +0000 (17:38 +0000)
Remove generated configuration files, and delete cscope files in any
directory.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Makefile

index 52aedecea08c38172bb201f6f8604ee499a260b7..c2cd9cea3000990ce8c63a3fd059c8dfb8c4faf1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -20,12 +20,11 @@ cscope:
 .PHONY: clean
 clean:
        find . \( -name "*.o" -o -name "*.d" -o -name "*.lds" \) -delete
-       find tests/ -executable -name "test-*" -delete
+       find tests/ \( -executable -name "test-*" -o -name "test-*.cfg" \) -delete
 
 .PHONY: distclean
 distclean: clean
-       find . -name "*~" -delete
-       rm -f cscope.*
+       find . \( -name "*~" -o -name "cscope*" \) -delete
        rm -rf docs/autogenerated/ dist/
 
 .PHONY: doxygen