diff options
author | Tim Crawford <tcrawford@system76.com> | 2022-01-03 10:12:38 -0700 |
---|---|---|
committer | Felix Singer <felixsinger@posteo.net> | 2022-07-12 22:11:35 +0000 |
commit | 5c2b5fcf2f9c9259938fd03cfa3ea06b36a007f0 (patch) | |
tree | 57fb97c8e7244de00eefbe20873e6c12cf77657b /util/spkmodem_recv | |
parent | 13c8d024c2a5d7d8874d1acf0b30baabb0abd756 (diff) |
util: Allow installing to a build root
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>
Diffstat (limited to 'util/spkmodem_recv')
-rw-r--r-- | util/spkmodem_recv/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/spkmodem_recv/Makefile b/util/spkmodem_recv/Makefile index c9659b44eb..92a3bfe930 100644 --- a/util/spkmodem_recv/Makefile +++ b/util/spkmodem_recv/Makefile @@ -5,4 +5,5 @@ INSTALL ?= install spkmodem-recv: $(CC) -o $@ $@.c install: spkmodem-recv - $(INSTALL) $< -t $(PREFIX)/bin/ + $(INSTALL) -d $(DESTDIR)$(PREFIX)/bin/ + $(INSTALL) $< -t $(DESTDIR)$(PREFIX)/bin/ |