1 Make sure the Makefile obeys $(DESTDIR)
3 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
5 Index: b/src/Makefile.in
6 ===================================================================
10 install: ${INSTALL_TARGETS}
13 - ${MKDIR_P} ${INST_INCDIR}/qlibc
14 - ${INSTALL_DATA} ${QLIBC_INCDIR}/qlibc.h ${INST_INCDIR}/qlibc/qlibc.h
15 - ${MKDIR_P} ${INST_LIBDIR}
16 - ${INSTALL_DATA} ${QLIBC_LIBDIR}/${QLIBC_LIBNAME} ${INST_LIBDIR}/${QLIBC_LIBNAME}
17 - ${INSTALL_DATA} ${QLIBC_LIBDIR}/${QLIBC_SLIBREALNAME} ${INST_LIBDIR}/${QLIBC_SLIBREALNAME}
18 - ( cd ${INST_LIBDIR}; ${LN_S} -f ${QLIBC_SLIBREALNAME} ${QLIBC_SLIBNAME} )
19 + ${MKDIR_P} ${DESTDIR}/${INST_INCDIR}/qlibc
20 + ${INSTALL_DATA} ${QLIBC_INCDIR}/qlibc.h ${DESTDIR}/${INST_INCDIR}/qlibc/qlibc.h
21 + ${MKDIR_P} ${DESTDIR}/${INST_LIBDIR}
22 + ${INSTALL_DATA} ${QLIBC_LIBDIR}/${QLIBC_LIBNAME} ${DESTDIR}/${INST_LIBDIR}/${QLIBC_LIBNAME}
23 + ${INSTALL_DATA} ${QLIBC_LIBDIR}/${QLIBC_SLIBREALNAME} ${DESTDIR}/${INST_LIBDIR}/${QLIBC_SLIBREALNAME}
24 + ( cd ${DESTDIR}/${INST_LIBDIR}; ${LN_S} -f ${QLIBC_SLIBREALNAME} ${QLIBC_SLIBNAME} )
27 - ${RM} -f ${INST_INCDIR}/qlibc/qlibc.h
28 - ${RM} -f ${INST_LIBDIR}/${QLIBC_LIBNAME}
29 - ${RM} -f ${INST_LIBDIR}/${QLIBC_SLIBREALNAME}
30 - ${RM} -f ${INST_LIBDIR}/${QLIBC_SLIBNAME}
31 + ${RM} -f ${DESTDIR}/${INST_INCDIR}/qlibc/qlibc.h
32 + ${RM} -f ${DESTDIR}/${INST_LIBDIR}/${QLIBC_LIBNAME}
33 + ${RM} -f ${DESTDIR}/${INST_LIBDIR}/${QLIBC_SLIBREALNAME}
34 + ${RM} -f ${DESTDIR}/${INST_LIBDIR}/${QLIBC_SLIBNAME}
36 install-qlibcext: qlibcext
37 - ${MKDIR_P} ${INST_INCDIR}/qlibc
38 - ${MKDIR_P} ${INST_INCDIR}/qlibc/qlibcext/
39 - ${INSTALL_DATA} ${QLIBC_INCDIR}/qlibcext.h ${INST_INCDIR}/qlibc/qlibcext.h
40 - ${INSTALL_DATA} ${QLIBC_INCDIR}/qlibcext/qconfig.h ${INST_INCDIR}/qlibc/qlibcext/qconfig.h
41 - ${INSTALL_DATA} ${QLIBC_INCDIR}/qlibcext/qaconf.h ${INST_INCDIR}/qlibc/qlibcext/qaconf.h
42 - ${INSTALL_DATA} ${QLIBC_INCDIR}/qlibcext/qlog.h ${INST_INCDIR}/qlibc/qlibcext/qlog.h
43 - ${INSTALL_DATA} ${QLIBC_INCDIR}/qlibcext/qhttpclient.h ${INST_INCDIR}/qlibc/qlibcext/qhttpclient.h
44 - ${INSTALL_DATA} ${QLIBC_INCDIR}/qlibcext/qdatabase.h ${INST_INCDIR}/qlibc/qlibcext/qdatabase.h
45 - ${MKDIR_P} ${INST_LIBDIR}
46 - ${INSTALL_DATA} ${QLIBC_LIBDIR}/${QLIBCEXT_LIBNAME} ${INST_LIBDIR}/${QLIBCEXT_LIBNAME}
47 - ${INSTALL_DATA} ${QLIBC_LIBDIR}/${QLIBCEXT_SLIBREALNAME} ${INST_LIBDIR}/${QLIBCEXT_SLIBREALNAME}
48 - ( cd ${INST_LIBDIR}; ${LN_S} -f ${QLIBCEXT_SLIBREALNAME} ${QLIBCEXT_SLIBNAME} )
49 + ${MKDIR_P} ${DESTDIR}/${INST_INCDIR}/qlibc
50 + ${MKDIR_P} ${DESTDIR}/${INST_INCDIR}/qlibc/qlibcext/
51 + ${INSTALL_DATA} ${QLIBC_INCDIR}/qlibcext.h ${DESTDIR}/${INST_INCDIR}/qlibc/qlibcext.h
52 + ${INSTALL_DATA} ${QLIBC_INCDIR}/qlibcext/qconfig.h ${DESTDIR}/${INST_INCDIR}/qlibc/qlibcext/qconfig.h
53 + ${INSTALL_DATA} ${QLIBC_INCDIR}/qlibcext/qaconf.h ${DESTDIR}/${INST_INCDIR}/qlibc/qlibcext/qaconf.h
54 + ${INSTALL_DATA} ${QLIBC_INCDIR}/qlibcext/qlog.h ${DESTDIR}/${INST_INCDIR}/qlibc/qlibcext/qlog.h
55 + ${INSTALL_DATA} ${QLIBC_INCDIR}/qlibcext/qhttpclient.h ${DESTDIR}/${INST_INCDIR}/qlibc/qlibcext/qhttpclient.h
56 + ${INSTALL_DATA} ${QLIBC_INCDIR}/qlibcext/qdatabase.h ${DESTDIR}/${INST_INCDIR}/qlibc/qlibcext/qdatabase.h
57 + ${MKDIR_P} ${DESTDIR}/${INST_LIBDIR}
58 + ${INSTALL_DATA} ${QLIBC_LIBDIR}/${QLIBCEXT_LIBNAME} ${DESTDIR}/${INST_LIBDIR}/${QLIBCEXT_LIBNAME}
59 + ${INSTALL_DATA} ${QLIBC_LIBDIR}/${QLIBCEXT_SLIBREALNAME} ${DESTDIR}/${INST_LIBDIR}/${QLIBCEXT_SLIBREALNAME}
60 + ( cd ${DESTDIR}/${INST_LIBDIR}; ${LN_S} -f ${QLIBCEXT_SLIBREALNAME} ${QLIBCEXT_SLIBNAME} )
63 - ${RM} -f ${INST_INCDIR}/qlibc/qlibcext.h
64 - ${RM} -f ${INST_INCDIR}/qlibc/qlibcext/qconfig.h
65 - ${RM} -f ${INST_INCDIR}/qlibc/qlibcext/qaconf.h
66 - ${RM} -f ${INST_INCDIR}/qlibc/qlibcext/qlog.h
67 - ${RM} -f ${INST_INCDIR}/qlibc/qlibcext/qhttpclient.h
68 - ${RM} -f ${INST_INCDIR}/qlibc/qlibcext/qdatabase.h
69 - ${RM} -f ${INST_LIBDIR}/${QLIBCEXT_LIBNAME}
70 - ${RM} -f ${INST_LIBDIR}/${QLIBCEXT_SLIBREALNAME}
71 - ${RM} -f ${INST_LIBDIR}/${QLIBCEXT_SLIBNAME}
72 + ${RM} -f ${DESTDIR}/${INST_INCDIR}/qlibc/qlibcext.h
73 + ${RM} -f ${DESTDIR}/${INST_INCDIR}/qlibc/qlibcext/qconfig.h
74 + ${RM} -f ${DESTDIR}/${INST_INCDIR}/qlibc/qlibcext/qaconf.h
75 + ${RM} -f ${DESTDIR}/${INST_INCDIR}/qlibc/qlibcext/qlog.h
76 + ${RM} -f ${DESTDIR}/${INST_INCDIR}/qlibc/qlibcext/qhttpclient.h
77 + ${RM} -f ${DESTDIR}/${INST_INCDIR}/qlibc/qlibcext/qdatabase.h
78 + ${RM} -f ${DESTDIR}/${INST_LIBDIR}/${QLIBCEXT_LIBNAME}
79 + ${RM} -f ${DESTDIR}/${INST_LIBDIR}/${QLIBCEXT_SLIBREALNAME}
80 + ${RM} -f ${DESTDIR}/${INST_LIBDIR}/${QLIBCEXT_SLIBNAME}
83 uninstall: uninstall-qlibc uninstall-qlibcext
84 - ${RMDIR} ${INST_INCDIR}/qlibc/qlibcext
85 - ${RMDIR} ${INST_INCDIR}/qlibc
86 + ${RMDIR} ${DESTDIR}/${INST_INCDIR}/qlibc/qlibcext
87 + ${RMDIR} ${DESTDIR}/${INST_INCDIR}/qlibc
90 ${RM} -f ${QLIBC_OBJS}