aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: c49dd381baa5434f0ce73b741202b8e2ec5ab18f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
.POSIX:

PREFIX  = /usr/local
DPREFIX = ${DESTDIR}${PREFIX}
MANDIR  = ${DPREFIX}/share/man

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/mmv
	cp ${target} ${DPREFIX}/bin/mcp
	cp mmv.1 ${MANDIR}/man1
	ln -srf ${MANDIR}/man1/mmv.1 ${MANDIR}/man1/mcp.1