[Python-checkins] r45553 - python/trunk/Makefile.pre.in

brett.cannon python-checkins at python.org
Wed Apr 19 01:58:53 CEST 2006


Author: brett.cannon
Date: Wed Apr 19 01:58:52 2006
New Revision: 45553

Modified:
   python/trunk/Makefile.pre.in
Log:
Added a pycremoval rule.  Called by clean, it removes all .pyc and .pyo files.
Handy to have as a separate rule from clean when mucking around with bytecode
generation.


Modified: python/trunk/Makefile.pre.in
==============================================================================
--- python/trunk/Makefile.pre.in	(original)
+++ python/trunk/Makefile.pre.in	Wed Apr 19 01:58:52 2006
@@ -988,11 +988,12 @@
 
 # Sanitation targets -- clean leaves libraries, executables and tags
 # files, which clobber removes those as well
+pycremoval:
+	find $(srcdir) -name '*.py[co]' -exec rm -f {} ';'
 
-clean:
+clean: pycremoval
 	find . -name '*.o' -exec rm -f {} ';'
 	find . -name '*.s[ol]' -exec rm -f {} ';'
-	find $(srcdir) -name '*.py[co]' -exec rm -f {} ';'
 	find $(srcdir)/build -name 'fficonfig.h' -exec rm -f {} ';' || true
 	find $(srcdir)/build -name 'fficonfig.py' -exec rm -f {} ';' || true
 


More information about the Python-checkins mailing list