Mercurial > ufpm
changeset 6:9cf2ae57efb9 default
Enhancement: adds support for DISTDIR.
author | John Schneiderman <JohnMS@CodeGNU.com> |
---|---|
date | Wed, 17 Mar 2010 16:10:08 +0000 |
parents | 94d705d506f9 |
children | |
files | Makefile |
diffstat | 1 files changed, 11 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Wed Mar 17 16:06:24 2010 +0000 +++ b/Makefile Wed Mar 17 16:10:08 2010 +0000 @@ -18,6 +18,7 @@ bindir = "/usr/bin" datadir = "/usr/share" mandir = "/usr/share/man" +DESTDIR = "" ufpm: ufpm.sh @mv ufpm.sh ufpm @@ -28,20 +29,20 @@ .PHONY:install install: - @echo We are going to install to ${bindir}... - @mkdir --parent ${bindir} - @cp ufpm ${bindir} - @chown ${USER}:${USER} ${bindir}/ufpm - @chmod 775 ${bindir}/ufpm - @mkdir --parent ${mandir}/man1 - @cp ufpm.1 ${mandir}/man1 - @chmod 664 ${mandir}/man1/ufpm.1 + @echo We are going to install to ${DESTDIR}${bindir}... + @mkdir --parent ${DESTDIR}${bindir} + @cp ufpm ${DESTDIR}${bindir} + @chown ${USER}:${USER} ${DESTDIR}${bindir}/ufpm + @chmod 775 ${DESTDIR}${bindir}/ufpm + @mkdir --parent ${DESTDIR}${mandir}/man1 + @cp ufpm.1 ${DESTDIR}${mandir}/man1 + @chmod 664 ${DESTDIR}${mandir}/man1/ufpm.1 @echo We have installed ufpm. .PHONY:uninstall uninstall: - @rm -f ${bindir}/ufpm - @rm -f ${mandir}/man1/ufpm.1* + @rm -f ${DESTDIR}${bindir}/ufpm + @rm -f ${DESTDIR}${mandir}/man1/ufpm.1* @echo We have removed ufpm. .PHONY:clean