summaryrefslogtreecommitdiffstats
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2006-04-18 23:58:52 (GMT)
committerBrett Cannon <bcannon@gmail.com>2006-04-18 23:58:52 (GMT)
commitab012af6ed8fb9a57f4d558532f4201de6534672 (patch)
tree81bf5198e162d311f2639f44d6a3da3b0398825c /Makefile.pre.in
parent503b73ebf75e1d3ab26279a8f5574e44b05e3c17 (diff)
downloadcpython-ab012af6ed8fb9a57f4d558532f4201de6534672.zip
cpython-ab012af6ed8fb9a57f4d558532f4201de6534672.tar.gz
cpython-ab012af6ed8fb9a57f4d558532f4201de6534672.tar.bz2
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.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r--Makefile.pre.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index d3539c2..f8a7481 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -988,11 +988,12 @@ TAGS::
# 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