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