Skip to content

Instantly share code, notes, and snippets.

@0atman
Created October 25, 2010 15:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 0atman/645170 to your computer and use it in GitHub Desktop.
Save 0atman/645170 to your computer and use it in GitHub Desktop.
Simple makefile that cleans a Python project
clean:
find ./ -name '*~' -exec rm -f {} \;
find ./ -name '#*' -exec rm -f {} \;
find ./ -name 'Thumbs.db' -exec rm -f {} \;
find ./ -name '*.pyc' -exec rm -f {} \;
@0atman
Copy link
Author

0atman commented Oct 25, 2010

Usage:
$ make clean

@0atman
Copy link
Author

0atman commented Oct 25, 2010

Sourced from the web2py (web2py.com) makefile, thanks Massimo!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment