1 | initial version |
You can replace the two lines with a find
command:
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
.