summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xclean.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/clean.sh b/clean.sh
index 395c390..73a0637 100755
--- a/clean.sh
+++ b/clean.sh
@@ -1,9 +1,7 @@
#!/usr/bin/env bash
# remove compiled files
-if [ -e "Makefile" ]; then
- make clean
-fi
+[ -e "[Mm]akefile" ] && make clean
# remove folders
find ./ -type d -name CMakeFiles -print | xargs -i rm {} -rf