go: remove target directory before copying to it

Otherwise when the version is updated and the package is rebuilt,
the target directory contains two mixed installations.
This commit is contained in:
Boris Nagaev 2017-02-13 02:07:18 +01:00
parent 8ac70a25b7
commit ed4948e9f5
1 changed files with 1 additions and 0 deletions

View File

@ -26,6 +26,7 @@ define $(PKG)_BUILD
DYLD_INSERT_LIBRARIES= \
./make.bash
rm -rf '$(PREFIX)/$(TARGET)/go'
mkdir -p '$(PREFIX)/$(TARGET)/go'
for d in include src bin pkg; do \
cp -a '$(1)'/$$d '$(PREFIX)/$(TARGET)/go/' ; \