01-install-DESTDIR.patch 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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
  4. @@ -39,35 +39,35 @@
  5. .PHONY: install-static install-shared uninstall-static uninstall-shared
  6. install-shared: ${LIBSOBLD} install-incs
  7. - @echo "Installing ${LIBSOBLD} to ${LIBDIR} ..."
  8. - @${INSTALLDIR} ${LIBDIR}
  9. - @${INSTALLLIB} ${LIBSOBLD} ${LIBDIR}
  10. - @(cd ${LIBDIR}; ${RM} ${LIBSO} ${LIBSOLNK}; ${LN} -sf ${LIBSOBLD} ${LIBSO}; ${LN} -sf ${LIBSOBLD} ${LIBSOLNK})
  11. + @echo "Installing ${LIBSOBLD} to ${DESTDIR}${LIBDIR} ..."
  12. + @${INSTALLDIR} ${DESTDIR}${LIBDIR}
  13. + @${INSTALLLIB} ${LIBSOBLD} ${DESTDIR}${LIBDIR}
  14. + @(cd ${DESTDIR}${LIBDIR}; ${RM} ${LIBSO} ${LIBSOLNK}; ${LN} -sf ${LIBSOBLD} ${LIBSO}; ${LN} -sf ${LIBSOBLD} ${LIBSOLNK})
  15. uninstall-shared: uninstall-incs
  16. - @echo "Removing ${LIBSOBLD} from ${LIBDIR} ..."
  17. - @${RM} -f ${LIBDIR}/${LIBSO} ${LIBDIR}/${LIBSOLNK} ${LIBDIR}/${LIBSOBLD}
  18. + @echo "Removing ${LIBSOBLD} from ${DESTDIR}${LIBDIR} ..."
  19. + @${RM} -f ${DESTDIR}${LIBDIR}/${LIBSO} ${DESTDIR}${LIBDIR}/${LIBSOLNK} ${DESTDIR}${LIBDIR}/${LIBSOBLD}
  20. install-static: ${LIBA} install-incs
  21. - @echo "Installing ${LIBA} to ${LIBDIR} ..."
  22. - @${INSTALLDIR} ${LIBDIR}
  23. - @${INSTALLLIB} ${LIBA} ${LIBDIR}
  24. + @echo "Installing ${LIBA} to ${DESTDIR}${LIBDIR} ..."
  25. + @${INSTALLDIR} ${DESTDIR}${LIBDIR}
  26. + @${INSTALLLIB} ${LIBA} ${DESTDIR}${LIBDIR}
  27. uninstall-static: uninstall-incs
  28. - @echo "Removing ${LIBA} from ${LIBDIR} ..."
  29. - @${RM} -f ${LIBDIR}/${LIBA}
  30. + @echo "Removing ${LIBA} from ${DESTDIR}${LIBDIR} ..."
  31. + @${RM} -f ${DESTDIR}${LIBDIR}/${LIBA}
  32. install-incs: ${INCS}
  33. - @echo "Installing headers to ${INCDIR} ..."
  34. - @${INSTALLDIR} ${INCDIR}/${LIBNAME}
  35. + @echo "Installing headers to ${DESTDIR}${INCDIR} ..."
  36. + @${INSTALLDIR} ${DESTDIR}${INCDIR}/${LIBNAME}
  37. @for i in $(filter-out ${LIBNAME}.h,${INCS}); do \
  38. - ${INSTALLDATA} $$i ${INCDIR}/${LIBNAME}/$$i; \
  39. + ${INSTALLDATA} $$i ${DESTDIR}${INCDIR}/${LIBNAME}/$$i; \
  40. done;
  41. - @${INSTALLDATA} ${LIBNAME}.h ${INCDIR}
  42. + @${INSTALLDATA} ${LIBNAME}.h ${DESTDIR}${INCDIR}
  43. uninstall-incs:
  44. - @echo "Removing headers from ${INCDIR} ..."
  45. - @${RM} -rf ${INCDIR}/${LIBNAME} ${INCDIR}/${LIBNAME}.h
  46. + @echo "Removing headers from ${DESTDIR}${INCDIR} ..."
  47. + @${RM} -rf ${DESTDIR}${INCDIR}/${LIBNAME} ${DESTDIR}${INCDIR}/${LIBNAME}.h
  48. %.o: %.cc