1 [PATCH] fix make install to respect DESTDIR
3 And also ensure destination directories exist.
5 Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
7 src/Makefile.in | 17 +++++++++--------
8 1 file changed, 9 insertions(+), 8 deletions(-)
10 Index: qdecoder-r12.0.5/src/Makefile.in
11 ===================================================================
12 --- qdecoder-r12.0.5.orig/src/Makefile.in
13 +++ qdecoder-r12.0.5/src/Makefile.in
15 ${LN_S} -f ${SLIBREALNAME} ${SLIBNAME}
18 - ${INSTALL_DATA} qdecoder.h ${HEADERDIR}/qdecoder.h
19 - ${INSTALL_DATA} ${LIBNAME} ${LIBDIR}/${LIBNAME}
20 - ${INSTALL_DATA} ${SLIBREALNAME} ${LIBDIR}/${SLIBREALNAME}
21 - ( cd ${LIBDIR}; ${LN_S} -f ${SLIBREALNAME} ${SLIBNAME} )
22 + mkdir -p ${DESTDIR}/${HEADERDIR} ${DESTDIR}/${LIBDIR}
23 + ${INSTALL_DATA} qdecoder.h ${DESTDIR}/${HEADERDIR}/qdecoder.h
24 + ${INSTALL_DATA} ${LIBNAME} ${DESTDIR}/${LIBDIR}/${LIBNAME}
25 + ${INSTALL_DATA} ${SLIBREALNAME} ${DESTDIR}/${LIBDIR}/${SLIBREALNAME}
26 + ( cd ${DESTDIR}/${LIBDIR}; ${LN_S} -f ${SLIBREALNAME} ${SLIBNAME} )
30 - ${RM} -f ${HEADERDIR}/qdecoder.h
31 - ${RM} -f ${LIBDIR}/${LIBNAME}
32 - ${RM} -f ${LIBDIR}/${SLIBREALNAME}
33 - ${RM} -f ${LIBDIR}/${SLIBNAME}
34 + ${RM} -f ${DESTDIR}/${HEADERDIR}/qdecoder.h
35 + ${RM} -f ${DESTDIR}/${LIBDIR}/${LIBNAME}
36 + ${RM} -f ${DESTDIR}/${LIBDIR}/${SLIBREALNAME}
37 + ${RM} -f ${DESTDIR}/${LIBDIR}/${SLIBNAME}