summaryrefslogtreecommitdiff
path: root/bin/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'bin/Makefile')
-rw-r--r--bin/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/bin/Makefile b/bin/Makefile
new file mode 100644
index 0000000..1caaafc
--- /dev/null
+++ b/bin/Makefile
@@ -0,0 +1,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 $< $@
+
+