5c2b5fcf2f
Modify util Makefiles to allow installing to a build root specified by DESTDIR. Allows using the `install` target for packaging. Change-Id: I3a31ea0fde9922731e1621dcc8f94b2c1326c93c Signed-off-by: Tim Crawford <tcrawford@system76.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60540 Reviewed-by: Paul Menzel <paulepanter@mailbox.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <patrick@coreboot.org> Reviewed-by: Felix Singer <felixsinger@posteo.net>
9 lines
225 B
Makefile
9 lines
225 B
Makefile
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
PREFIX ?= /usr/local
|
|
INSTALL ?= install
|
|
|
|
spkmodem-recv:
|
|
$(CC) -o $@ $@.c
|
|
install: spkmodem-recv
|
|
$(INSTALL) -d $(DESTDIR)$(PREFIX)/bin/
|
|
$(INSTALL) $< -t $(DESTDIR)$(PREFIX)/bin/
|