Skip to content

Commit 12f5858

Browse files
mithrosbourdeauducq
authored andcommittedSep 8, 2015
Allow installing tools to a prefix.
(Defaults to /usr/local.)
1 parent 40f47f4 commit 12f5858

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

Diff for: ‎tools/Makefile

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
TARGETS=flterm byteswap
22
CC=gcc
33
RM ?= rm -f
4+
PREFIX ?= /usr/local
45

56
all: $(TARGETS)
67

78
%: %.c
89
$(CC) -O2 -Wall -I../common -s -o $@ $<
910

1011
install: flterm
11-
install -d /usr/local/bin
12-
install -m755 -t /usr/local/bin $^
12+
install -d $(PREFIX)/bin
13+
install -m755 -t $(PREFIX)/bin $^
1314

1415
.PHONY: all clean install
1516

0 commit comments

Comments
 (0)
Please sign in to comment.