summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-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