Skip to content

Commit be9d04e

Browse files
committed
Makefile: add an install target
Signed-off-by: Nicolas Dechesne <[email protected]>
1 parent 6d51c62 commit be9d04e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
TOPDIR := $(PWD)
22
PLATFORMS := $(foreach platform,$(wildcard platforms/*),$(platform)/gpt)
3+
BINS := gen_partition.py msp.py ptool.py
4+
PREFIX ?= /usr/local
35

46
.PHONY: all
57

@@ -15,3 +17,6 @@ check:
1517
# W605: invalid escape sequence
1618
pycodestyle --select=W605 *.py
1719

20+
install: $(BINS)
21+
install -d $(DESTDIR)$(PREFIX)/bin
22+
install -m 755 $^ $(DESTDIR)$(PREFIX)/bin

0 commit comments

Comments
 (0)