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 | |
| 11 | --- a/Makefile.pre.in |
| 12 | +++ b/Makefile.pre.in |
| 13 | @@ -1306,8 +1306,8 @@ touch: |
| 14 | # Sanitation targets -- clean leaves libraries, executables and tags |
| 15 | # files, which clobber removes as well |
| 16 | pycremoval: |
| 17 | - -find $(srcdir) -depth -name '__pycache__' -exec rm -rf {} ';' |
| 18 | - -find $(srcdir) -name '*.py[co]' -exec rm -f {} ';' |
| 19 | + -find $(srcdir) ! -path './ipkg-install/*' -depth -name '__pycache__' -exec rm -rf {} ';' |
| 20 | + -find $(srcdir) ! -path './ipkg-install/*' -name '*.py[co]' -exec rm -f {} ';' |
| 21 | |
| 22 | rmtestturds: |
| 23 | -rm -f *BAD *GOOD *SKIPPED |
| 24 | @@ -1321,9 +1321,9 @@ docclean: |
| 25 | -rm -rf Doc/tools/sphinx Doc/tools/pygments Doc/tools/docutils |
| 26 | |
| 27 | clean: pycremoval |
| 28 | - find . -name '*.[oa]' -exec rm -f {} ';' |
| 29 | - find . -name '*.s[ol]' -exec rm -f {} ';' |
| 30 | - find . -name '*.so.[0-9]*.[0-9]*' -exec rm -f {} ';' |
| 31 | + find . ! -path './ipkg-install/*' -name '*.[oa]' -exec rm -f {} ';' |
| 32 | + find . ! -path './ipkg-install/*' -name '*.s[ol]' -exec rm -f {} ';' |
| 33 | + find . ! -path './ipkg-install/*' -name '*.so.[0-9]*.[0-9]*' -exec rm -f {} ';' |
| 34 | find build -name 'fficonfig.h' -exec rm -f {} ';' || true |
| 35 | find build -name 'fficonfig.py' -exec rm -f {} ';' || true |
| 36 | -rm -f Lib/lib2to3/*Grammar*.pickle |