Mercurial > hg > index.cgi
changeset 270:35b6787a5b39
Allow make install destination to be overridden
Instead of hard coding /usr/local/bin as the installation location for make
install, allow it to be overridden with DESTDIR.
This is based on a patch submitted by Tormod Volden
<debian.tormod@gmail.com> with minor modifications - notably that there is
no need to silence the echoing of the commands for make install.
author | William Astle <lost@l-w.ca> |
---|---|
date | Sun, 07 Apr 2013 01:18:31 -0600 |
parents | 1c70570e3d42 |
children | f6acfc659dd9 |
files | Makefile |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Sat Mar 09 19:07:27 2013 -0700 +++ b/Makefile Sun Apr 07 01:18:31 2013 -0600 @@ -7,6 +7,8 @@ #PROGSUFFIX := .exe #BUILDTPREFIX=i586-mingw32msvc- +DESTDIR ?= /usr/local/bin + # C compiler CC := $(BUILDTPREFIX)cc @@ -127,7 +129,8 @@ .PHONY: install install: - cp $(MAIN_TARGETS) /usr/local/bin/ + mkdir -p $(DESTDIR) + cp $(MAIN_TARGETS) $(DESTDIR) .PHONY: test test: all test/runtests