|   | 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.
 Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.
 
                
                Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.