Skip to content

Commit

Permalink
Allow installing tools to a prefix.
Browse files Browse the repository at this point in the history
(Defaults to /usr/local.)
mithro authored and sbourdeauducq committed Sep 8, 2015
1 parent 40f47f4 commit 12f5858
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
TARGETS=flterm byteswap
CC=gcc
RM ?= rm -f
PREFIX ?= /usr/local

all: $(TARGETS)

%: %.c
$(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

0 comments on commit 12f5858

Please sign in to comment.