Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | consider opkg directories when cleaning up |
| 2 | |
| 3 | -Khem |
| 4 | |
| 5 | Upstream-Status: Inappropriate [OE specific] |
| 6 | |
| 7 | --- |
| 8 | Makefile.pre.in | 6 +++--- |
| 9 | 1 file changed, 3 insertions(+), 3 deletions(-) |
| 10 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 11 | Index: Python-3.5.3/Makefile.pre.in |
| 12 | =================================================================== |
| 13 | --- Python-3.5.3.orig/Makefile.pre.in |
| 14 | +++ Python-3.5.3/Makefile.pre.in |
| 15 | @@ -1574,8 +1574,8 @@ touch: |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 16 | # Sanitation targets -- clean leaves libraries, executables and tags |
| 17 | # files, which clobber removes as well |
| 18 | pycremoval: |
| 19 | - -find $(srcdir) -depth -name '__pycache__' -exec rm -rf {} ';' |
| 20 | - -find $(srcdir) -name '*.py[co]' -exec rm -f {} ';' |
| 21 | + -find $(srcdir) ! -path './ipkg-install/*' -depth -name '__pycache__' -exec rm -rf {} ';' |
| 22 | + -find $(srcdir) ! -path './ipkg-install/*' -name '*.py[co]' -exec rm -f {} ';' |
| 23 | |
| 24 | rmtestturds: |
| 25 | -rm -f *BAD *GOOD *SKIPPED |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 26 | @@ -1589,9 +1589,9 @@ docclean: |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 27 | -rm -rf Doc/tools/sphinx Doc/tools/pygments Doc/tools/docutils |
| 28 | |
| 29 | clean: pycremoval |
| 30 | - find . -name '*.[oa]' -exec rm -f {} ';' |
| 31 | - find . -name '*.s[ol]' -exec rm -f {} ';' |
| 32 | - find . -name '*.so.[0-9]*.[0-9]*' -exec rm -f {} ';' |
| 33 | + find . ! -path './ipkg-install/*' -name '*.[oa]' -exec rm -f {} ';' |
| 34 | + find . ! -path './ipkg-install/*' -name '*.s[ol]' -exec rm -f {} ';' |
| 35 | + find . ! -path './ipkg-install/*' -name '*.so.[0-9]*.[0-9]*' -exec rm -f {} ';' |
| 36 | find build -name 'fficonfig.h' -exec rm -f {} ';' || true |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 37 | find build -name '*.py' -exec rm -f {} ';' || true |
| 38 | find build -name '*.py[co]' -exec rm -f {} ';' || true |