From c5240658cd621132a55f4f1ad60be2593aee28f8 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 12 Aug 2023 14:57:09 +0200 Subject: Add a Makefile --- Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..aaea0d8 --- /dev/null +++ b/Makefile @@ -0,0 +1,15 @@ +.POSIX: + +PREFIX = /usr/local +DPREFIX = ${DESTDIR}${PREFIX} + +target = target/release/mmv + +all: ${target} +${target}: src/main.rs + cargo build --release + +install: + mkdir -p ${DPREFIX}/bin ${DPREFIX}/share/man/man1 + cp ${target} ${DPREFIX}/bin + cp mmv.1 ${DPREFIX}/share/man/man1 -- cgit v1.2.3