mkports

recipes for building multiple softwares with mk(1)
git clone git://z3bra.org/mkports
Log | Files | Refs

commit 1f7d868b6c66bf8d4a34ffb424f5bc273b8e6d3d
parent 60225232bb466c0a0661fcff39f43e1e69bd3693
Author: z3bra <willyatmailoodotorg>
Date:   Mon Jan 18 13:48:17 2016

Improve cleanup to discover uneeded directories

Diffstat:
 default.mk | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/default.mk b/default.mk @@ -24,10 +24,12 @@ install:QV: build make PREFIX= DESTDIR=$destdir install fi -cleanup:V: install +cleanup:QV: install cd $destdir find . -name '*.la' -delete - rm -rf ./share/doc ./share/info ./lib/pkgconfig + find . -name 'info' -type d -exec rm -r {} + + find . -name 'doc' -type d -exec rm -r {} + + find . -name 'pkgconfig' -type d -exec rm -r {} + if [ -z "$(ls ./share)" ]; then rmdir ./share fi