From 2aee09890244021098080437b912878c94a19784 Mon Sep 17 00:00:00 2001 From: Nicolas Dechesne Date: Fri, 11 Apr 2025 18:29:21 +0200 Subject: [PATCH] Makefile: add an install target Signed-off-by: Nicolas Dechesne --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 4a9394c..647c6e2 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,7 @@ TOPDIR := $(PWD) PLATFORMS := $(foreach platform,$(wildcard platforms/*),$(platform)/gpt) +BINS := gen_partition.py msp.py ptool.py +PREFIX ?= /usr/local .PHONY: all @@ -15,3 +17,6 @@ check: # W605: invalid escape sequence pycodestyle --select=W605 *.py +install: $(BINS) + install -d $(DESTDIR)$(PREFIX)/bin + install -m 755 $^ $(DESTDIR)$(PREFIX)/bin