Fix copy issue and symbol link

- Fix the issue while running `make install` on Debian 10:

```
# make install
rm -rf /usr/local/{bin/v,lib/vlang}
mkdir -p /usr/local/lib/vlang /usr/local/bin
cp -fr {v,vlib,thirdparty} /usr/local/lib/vlang
cp: cannot stat '{v,vlib,thirdparty}': No such file or directory
make: *** [Makefile:49: install] Error 1
```

- Force to create symbol link if `${PREFIX}/bin/v` already exists.
pull/1556/head^2
iRedMail 2019-08-10 14:08:09 +08:00 committed by Alexander Medvednikov
parent 5a80d587d5
commit 2ebfc8ab73
1 changed files with 2 additions and 2 deletions

View File

@ -47,8 +47,8 @@ release: clean v-release thirdparty-release
install: uninstall
mkdir -p ${PREFIX}/lib/vlang ${PREFIX}/bin
cp -r {v,vlib,thirdparty} ${PREFIX}/lib/vlang
ln -s ${PREFIX}/lib/vlang/v ${PREFIX}/bin/v
cp -r v vlib thirdparty ${PREFIX}/lib/vlang
ln -sf ${PREFIX}/lib/vlang/v ${PREFIX}/bin/v
uninstall:
rm -rf ${PREFIX}/{bin/v,lib/vlang}