1 diff -ruN ustl-0.8-old/Makefile ustl-0.8-new/Makefile
2 --- ustl-0.8-old/Makefile 2005-11-10 21:06:53.000000000 +0100
3 +++ ustl-0.8-new/Makefile 2005-12-08 13:57:07.000000000 +0100
5 .PHONY: install-static install-shared uninstall-static uninstall-shared
7 install-shared: ${LIBSOBLD} install-incs
8 - @echo "Installing ${LIBSOBLD} to ${LIBDIR} ..."
9 - @${INSTALLDIR} ${LIBDIR}
10 - @${INSTALLLIB} ${LIBSOBLD} ${LIBDIR}
11 - @(cd ${LIBDIR}; ${RM} ${LIBSO} ${LIBSOLNK}; ${LN} -sf ${LIBSOBLD} ${LIBSO}; ${LN} -sf ${LIBSOBLD} ${LIBSOLNK})
12 + @echo "Installing ${LIBSOBLD} to ${DESTDIR}${LIBDIR} ..."
13 + @${INSTALLDIR} ${DESTDIR}${LIBDIR}
14 + @${INSTALLLIB} ${LIBSOBLD} ${DESTDIR}${LIBDIR}
15 + @(cd ${DESTDIR}${LIBDIR}; ${RM} ${LIBSO} ${LIBSOLNK}; ${LN} -sf ${LIBSOBLD} ${LIBSO}; ${LN} -sf ${LIBSOBLD} ${LIBSOLNK})
17 uninstall-shared: uninstall-incs
18 - @echo "Removing ${LIBSOBLD} from ${LIBDIR} ..."
19 - @${RM} -f ${LIBDIR}/${LIBSO} ${LIBDIR}/${LIBSOLNK} ${LIBDIR}/${LIBSOBLD}
20 + @echo "Removing ${LIBSOBLD} from ${DESTDIR}${LIBDIR} ..."
21 + @${RM} -f ${DESTDIR}${LIBDIR}/${LIBSO} ${DESTDIR}${LIBDIR}/${LIBSOLNK} ${DESTDIR}${LIBDIR}/${LIBSOBLD}
23 install-static: ${LIBA} install-incs
24 - @echo "Installing ${LIBA} to ${LIBDIR} ..."
25 - @${INSTALLDIR} ${LIBDIR}
26 - @${INSTALLLIB} ${LIBA} ${LIBDIR}
27 + @echo "Installing ${LIBA} to ${DESTDIR}${LIBDIR} ..."
28 + @${INSTALLDIR} ${DESTDIR}${LIBDIR}
29 + @${INSTALLLIB} ${LIBA} ${DESTDIR}${LIBDIR}
31 uninstall-static: uninstall-incs
32 - @echo "Removing ${LIBA} from ${LIBDIR} ..."
33 - @${RM} -f ${LIBDIR}/${LIBA}
34 + @echo "Removing ${LIBA} from ${DESTDIR}${LIBDIR} ..."
35 + @${RM} -f ${DESTDIR}${LIBDIR}/${LIBA}
38 - @echo "Installing headers to ${INCDIR} ..."
39 - @${INSTALLDIR} ${INCDIR}/${LIBNAME}
40 + @echo "Installing headers to ${DESTDIR}${INCDIR} ..."
41 + @${INSTALLDIR} ${DESTDIR}${INCDIR}/${LIBNAME}
42 @for i in $(filter-out ${LIBNAME}.h,${INCS}); do \
43 - ${INSTALLDATA} $$i ${INCDIR}/${LIBNAME}/$$i; \
44 + ${INSTALLDATA} $$i ${DESTDIR}${INCDIR}/${LIBNAME}/$$i; \
46 - @${INSTALLDATA} ${LIBNAME}.h ${INCDIR}
47 + @${INSTALLDATA} ${LIBNAME}.h ${DESTDIR}${INCDIR}
50 - @echo "Removing headers from ${INCDIR} ..."
51 - @${RM} -rf ${INCDIR}/${LIBNAME} ${INCDIR}/${LIBNAME}.h
52 + @echo "Removing headers from ${DESTDIR}${INCDIR} ..."
53 + @${RM} -rf ${DESTDIR}${INCDIR}/${LIBNAME} ${DESTDIR}${INCDIR}/${LIBNAME}.h