1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

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.
This commit is contained in:
iRedMail 2019-08-10 14:08:09 +08:00 committed by Alexander Medvednikov
parent 5a80d587d5
commit 2ebfc8ab73

View File

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