makefile: smarter clean target - prevent bad stuff
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2022-01-13 06:28:45 +01:00
parent 9f738e97ec
commit 73cf5545dd
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

View File

@ -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