summaryrefslogtreecommitdiff
path: root/bin/Makefile
blob: 1caaafc3a6091683d30152968f5f71f220065892 (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 0644  $< $@