From: Tim 'mithro' Ansell Date: Tue, 8 Sep 2015 15:15:15 +0000 (-0700) Subject: Allow installing tools to a prefix. X-Git-Tag: 24jan2021_ls180~2118 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=12f58588506032b068b15fc5844bc85e3349e830;p=litex.git Allow installing tools to a prefix. (Defaults to /usr/local.) --- diff --git a/tools/Makefile b/tools/Makefile index c1ca68f6..45554155 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -1,6 +1,7 @@ TARGETS=flterm byteswap CC=gcc RM ?= rm -f +PREFIX ?= /usr/local all: $(TARGETS) @@ -8,8 +9,8 @@ all: $(TARGETS) $(CC) -O2 -Wall -I../common -s -o $@ $< install: flterm - install -d /usr/local/bin - install -m755 -t /usr/local/bin $^ + install -d $(PREFIX)/bin + install -m755 -t $(PREFIX)/bin $^ .PHONY: all clean install