blob: 131acc569b2c385671c80a49be7d054ef4bc8602 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
.POSIX:
PREFIX = /usr/local
DPREFIX = ${DESTDIR}${PREFIX}
MANDIR = ${DPREFIX}/share/man
target = target/release/mmv
mmv = $${MMV_NAME:-mmv}
mcp = $${MCP_NAME:-mcp}
all: ${target}
${target}: src/main.rs
cargo build --release
install:
mkdir -p ${DPREFIX}/bin ${DPREFIX}/share/man/man1
cp ${target} ${DPREFIX}/bin/${mmv}
cp mmv.1 ${MANDIR}/man1/${mmv}.1
ln -srf ${DPREFIX}/bin/${mmv} ${DPREFIX}/bin/${mcp}
ln -srf ${MANDIR}/man1/${mmv}.1 ${MANDIR}/man1/${mcp}.1
clean:
rm -rf target
|