mirror of
https://codeberg.org/canoeboot/cbmk.git
synced 2025-01-21 22:50:06 +00:00
54809f06bf
Set up the DESTDIR variable properly. Otherwise, this is just style changes. Signed-off-by: Leah Rowe <leah@libreboot.org>
14 lines
319 B
Makefile
14 lines
319 B
Makefile
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
CC?=cc
|
|
CFLAGS?=-Os -Wall -Wextra -Werror -pedantic
|
|
DESTDIR?=
|
|
PREFIX?=/usr/local
|
|
INSTALL?=install
|
|
|
|
spkmodem-recv:
|
|
$(CC) $(CFLAGS) -o $@ $@.c
|
|
install: spkmodem-recv
|
|
$(INSTALL) -d $(DESTDIR)$(PREFIX)/bin/
|
|
$(INSTALL) $< -t $(DESTDIR)$(PREFIX)/bin/
|
|
clean:
|
|
rm -f spkmodem-recv
|