summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-07-28 07:53:02 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-07-28 07:53:02 (EDT)
commitde9921ff0ae2990308b85bb67810e734350f670a (patch)
tree784143cc1fa94184a60f02c653586e3dca663457
parentcf0a50c4980f0d05c3bb45a885a5269ee9bcedf8 (diff)
Clean up empty directories.
-rwxr-xr-xbuild4
1 files changed, 3 insertions, 1 deletions
diff --git a/build b/build
index c22ff91..cea1ea2 100755
--- a/build
+++ b/build
@@ -80,7 +80,9 @@ install.stamp: build
mv "dest/usr/$(OH_HOST_ARCH_GNU)/$${target_arch_gnu}/include" \
"dest/usr/include/$(OH_HOST_ARCH)/$${target}" && \
mv "dest/usr/$(OH_HOST_ARCH_GNU)/$${target_arch_gnu}/lib" \
- "dest/usr/lib/$(OH_HOST_ARCH)/$${target}"; \
+ "dest/usr/lib/$(OH_HOST_ARCH)/$${target}" && \
+ rmdir "dest/usr/$(OH_HOST_ARCH_GNU)/$${target_arch_gnu}" && \
+ rmdir "dest/usr/$(OH_HOST_ARCH_GNU)"; \
done
# Remove static library dependency metadata generated by libtool.
rm -f dest/usr/lib/$(OH_HOST_ARCH)/*.la