blob: c255dfd05e8c4e5d3eeb2443ed8ae725d3f051ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
prefix ?= /usr
bindir ?= $(prefix)/bin
BIN_FILES = $(filter-out Makefile , $(wildcard *))
BIN_INSTALLABLES = $(patsubst %, $(DESTDIR)$(bindir)/%, $(BIN_FILES))
INSTALLABLES = $(BIN_INSTALLABLES)
.PHONY: install
install: $(INSTALLABLES)
$(DESTDIR)$(bindir)/%: %
install -D -m 0755 $< $@
|