Fix recursive symlink issue in make symstall

This commit is contained in:
pancake 2015-07-08 21:49:30 +02:00
parent 8201fb3e3a
commit a7da6118f0

View File

@ -94,7 +94,8 @@ symstall install-symlink:
rm -rf "${IFX}/libr" && ln -fs "${PWD}/include" "${IFX}/libr"
cd ../pkgcfg && for a in *.pc ; do \
if [ -e "${PWD}/../pkgcfg/$${a}" ] ; then \
ln -fs "${PWD}/../pkgcfg/$${a}" "${LFX}/pkgconfig/$${a}" ; \
ln -fs "${PWD}/../pkgcfg/$${a}" \
"${LFX}/pkgconfig/$${a}" ; \
fi ; \
done
@$(foreach lib,${LIBS}, \
@ -106,8 +107,8 @@ symstall install-symlink:
$(foreach module,$(wildcard $(lib)/p/*.${EXT_SO}), \
ln -fs "${PWD}/$(module)" "${LFX}/radare2/${VERSION}/" ; \
) \
( cd "${LFX}/radare2" ; ln -fs "${VERSION}" last ) ; \
)
cd "${LFX}/radare2" ; rm -f last ; ln -fs "${VERSION}" last
install: install-includes install-pkgconfig
# TODO :Use INSTALL_DATA_DIR instead of mkdir