diff options
Diffstat (limited to 'rules/post/cleanup.make')
-rw-r--r-- | rules/post/cleanup.make | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/rules/post/cleanup.make b/rules/post/cleanup.make new file mode 100644 index 0000000..55abf33 --- /dev/null +++ b/rules/post/cleanup.make @@ -0,0 +1,16 @@ + +$(STATEDIR)/world.cleanup: $(STATEDIR)/world.targetinstall + @$(call targetinfo) + @find "$(PTXCONF_SYSROOT_CROSS)" -depth -type d -print0 | \ + xargs -r -0 -- rmdir -v --ignore-fail-on-non-empty -- + find \ + "$(PTXCONF_SYSROOT_CROSS)/libexec/" \ + "$(PTXCONF_SYSROOT_CROSS)/bin/" \ + "$(PTXCONF_SYSROOT_CROSS)/"*/bin/ \ + -type f \( -executable -o -name "*.so*" \) \ + | xargs -n1 --verbose strip || true + @$(call touch) + +world: $(STATEDIR)/world.cleanup + +# vim: syntax=make |