aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2022-11-04 16:00:04 +0100
committerThomas Voss <mail@thomasvoss.com> 2022-11-04 16:00:04 +0100
commite0676b3bb80f2fe1d0c2bb8e6979fd07bcba52e8 (patch)
tree63ac0de68fc854435d34b8c3be3a8b9b92385b51 /Makefile
parent9346d577d2ddcf57df6bf60064c978b56348b068 (diff)
Add a Makefile for easy installation
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..547142f
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,16 @@
+.POSIX:
+
+PREFIX = /usr
+DPREFIX = ${DESTDIR}${PREFIX}
+BINDIR = ${DPREFIX}/bin
+MANDIR = ${DPREFIX}/share/man/man1
+
+target = target/release/mmv
+
+all:
+ @echo "Run “cargo build [-r]” to build"
+
+install:
+ mkdir -p ${BINDIR} ${MANDIR}
+ cp ${target} ${BINDIR}
+ cp man/mmv.1 ${MANDIR}