python: refresh patches
[openwrt/svn-archive/archive.git] / lang / python / patches / 070-dont-clean-ipkg-install.patch
1 ---
2 Makefile.pre.in | 6 +++---
3 1 file changed, 3 insertions(+), 3 deletions(-)
4
5 --- Python-2.6.4.orig/Makefile.pre.in
6 +++ Python-2.6.4/Makefile.pre.in
7 @@ -1118,11 +1118,11 @@ TAGS::
8 # Sanitation targets -- clean leaves libraries, executables and tags
9 # files, which clobber removes as well
10 pycremoval:
11 - find $(srcdir) -name '*.py[co]' -exec rm -f {} ';'
12 + find $(srcdir) ! -path './ipkg-install/*' -name '*.py[co]' -exec rm -f {} ';'
13
14 clean: pycremoval
15 - find . -name '*.o' -exec rm -f {} ';'
16 - find . -name '*.s[ol]' -exec rm -f {} ';'
17 + find . ! -path './ipkg-install/*' -name '*.o' -exec rm -f {} ';'
18 + find . ! -path './ipkg-install/*' -name '*.s[ol]' -exec rm -f {} ';'
19 find $(srcdir)/build -name 'fficonfig.h' -exec rm -f {} ';' || true
20 find $(srcdir)/build -name 'fficonfig.py' -exec rm -f {} ';' || true
21 -rm -f Lib/lib2to3/*Grammar*.pickle