summaryrefslogtreecommitdiff
path: root/bin/Makefile
diff options
context:
space:
mode:
authorJason D. McCormick <jason@mfamily.org>2023-12-20 16:47:37 -0500
committerJason D. McCormick <jason@mfamily.org>2023-12-20 16:47:37 -0500
commit62bca1b61296ac551574818c5021188913678168 (patch)
tree3224e3bdd527bb2f9253c097512ffd319f4caeed /bin/Makefile
parent93f370195a4178aefce312027ad042559dd51a64 (diff)
updated mf-backup, add Makefiles
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 $< $@
+
+