Adrian Herrera has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/38295 )

Change subject: util: m5term, configurable install directories
......................................................................

util: m5term, configurable install directories

Use standard GNU Make install directory variables. Build systems can
configure these to install the utility in custom staging areas.

Change-Id: Ib8d73ec717e1c8c99b24df33e93e1a74cf8aa717
Signed-off-by: Adrian Herrera <adrian.herr...@arm.com>
---
M util/term/Makefile
1 file changed, 6 insertions(+), 1 deletion(-)



diff --git a/util/term/Makefile b/util/term/Makefile
index 4aa1c52..fd98aae 100644
--- a/util/term/Makefile
+++ b/util/term/Makefile
@@ -24,6 +24,10 @@
 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

+prefix ?= /usr/local
+exec_prefix ?= $(prefix)
+bindir ?= $(exec_prefix)/bin
+
 CFLAGS ?= -g -O0

 default: m5term
@@ -32,7 +36,8 @@
        $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS)

 install: m5term
-       $(SUDO) install -o root -m 555 m5term /usr/local/bin
+       mkdir -p $(DESTDIR)$(bindir)
+       $(SUDO) install -o root -m 555 m5term $(DESTDIR)$(bindir)

 clean:
        @rm -f m5term *~ .#*

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/38295
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: Ib8d73ec717e1c8c99b24df33e93e1a74cf8aa717
Gerrit-Change-Number: 38295
Gerrit-PatchSet: 1
Gerrit-Owner: Adrian Herrera <adrian.herr...@arm.com>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to