Fix make install issues with r2pm

This commit is contained in:
pancake 2015-12-03 17:02:13 +01:00
parent c00763289f
commit 9442ec43fc
2 changed files with 8 additions and 4 deletions

View File

@ -155,6 +155,10 @@ install love: install-doc install-man install-www
for DIR in ${DATADIRS} ; do \
(cd "$$DIR" ; ${MAKE} install ); \
done
cd "$(DESTDIR)$(LIBDIR)/radare2/" ;\
rm -f last ; ln -fs $(VERSION) last
cd "$(DESTDIR)$(DATADIR)/radare2/" ;\
rm -f last ; ln -fs $(VERSION) last
rm -rf "${DESTDIR}${LIBDIR}/radare2/${VERSION}/hud"
mkdir -p "${DESTDIR}${LIBDIR}/radare2/${VERSION}/hud"
cp -f doc/hud "${DESTDIR}${LIBDIR}/radare2/${VERSION}/hud/main"
@ -198,7 +202,7 @@ symstall install-symlink: install-man-symlink install-doc-symlink install-pkgcon
mkdir -p "${DESTDIR}${LIBDIR}/radare2/${VERSION}/hud"
cd "$(DESTDIR)$(LIBDIR)/radare2/" ;\
rm -f last ; ln -fs $(VERSION) last
cd "$(DESTDIR)$(PREFIX)/share/radare2/" ;\
cd "$(DESTDIR)$(DATADIR)/radare2/" ;\
rm -f last ; ln -fs $(VERSION) last
ln -fs "${PWD}/doc/hud" "${DESTDIR}${LIBDIR}/radare2/${VERSION}/hud/main"
mkdir -p "${DESTDIR}${DATADIR}/radare2/${VERSION}/"

View File

@ -30,9 +30,9 @@ install:
done
${INSTALL_SCRIPT} "$(BTOP)/r2pm/r2pm" "${DESTDIR}${BINDIR}/r2pm"
rm -f "${DESTDIR}${BINDIR}/ragg2-cc"
rm -rf "${DESTDIR}${PREFIX}/radare2/${VERSION}/r2pm"
mkdir -p "${DESTDIR}${PREFIX}/radare2/${VERSION}/r2pm"
cp -rf r2pm/d/* "${DESTDIR}${PREFIX}/radare2/${VERSION}/r2pm"
rm -rf "${DESTDIR}${DATADIR}/radare2/${VERSION}/r2pm"
mkdir -p "${DESTDIR}${DATADIR}/radare2/${VERSION}/r2pm"
cp -rf r2pm/d/* "${DESTDIR}${DATADIR}/radare2/${VERSION}/r2pm"
${INSTALL_SCRIPT} ragg2/ragg2-cc "${DESTDIR}${BINDIR}/ragg2-cc"
-cd "${DESTDIR}${BINDIR}" && rm -f r2 ; ln -fs radare2 r2
${INSTALL_LIB} "preload/libr2.$(EXT_SO)" "${DESTDIR}${LIBDIR}"