summaryrefslogtreecommitdiffstats
path: root/rules/post/cleanup.make
blob: 55abf3354130e8de6307f355ac18159901a59a94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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