makefile: smarter clean target - prevent bad stuff
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
9f738e97ec
commit
73cf5545dd
2
Makefile
2
Makefile
|
@ -79,7 +79,7 @@ build: debug
|
|||
test: check build
|
||||
|
||||
clean:
|
||||
@find . -maxdepth 5 -follow -regextype posix-egrep -regex ".*\.(o|dwo|out|bin|cmake|txt)" -not -name CMakeLists.txt -not -path "./lib/*" -delete
|
||||
@find . -maxdepth 5 -follow -type f -regextype posix-egrep -regex ".*\.(o|dwo|out|bin|cmake|txt)" -not -name CMakeLists.txt -not -path "./lib/*" -not -path "./.git/*" -delete
|
||||
|
||||
distclean:
|
||||
@find . -iwholename '*cmake*' -not -name CMakeLists.txt -not -path "./lib/*" -delete
|
||||
|
|
Reference in New Issue