projects
/
litex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40f47f4
)
Allow installing tools to a prefix.
author
Tim 'mithro' Ansell
<mithro@mithis.com>
Tue, 8 Sep 2015 15:15:15 +0000
(08:15 -0700)
committer
Sebastien Bourdeauducq
<sb@m-labs.hk>
Tue, 8 Sep 2015 15:16:34 +0000
(08:16 -0700)
(Defaults to /usr/local.)
tools/Makefile
patch
|
blob
|
history
diff --git
a/tools/Makefile
b/tools/Makefile
index c1ca68f6ae1301baca7b90ca4d4025c8428585ee..45554155a26fc34beac9760d4738ffc6630a31c9 100644
(file)
--- 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