First time here? Check out the FAQ!
answered 7 years ago
You can replace the two lines with a find command:
find
clean: find -type f ! -name logger.py ! -name utils.py ! -name "*.sage" -exec ls {} \;
Note that it will also look at the subdirectories. Once you are happy with that, you can replace ls with rm.
ls
rm