From 12f58588506032b068b15fc5844bc85e3349e830 Mon Sep 17 00:00:00 2001 From: Tim 'mithro' Ansell Date: Tue, 8 Sep 2015 08:15:15 -0700 Subject: [PATCH] Allow installing tools to a prefix. (Defaults to /usr/local.) --- tools/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.30.2