-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
37 lines (27 loc) · 871 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
PREFIX = /usr/local
MANPREFIX = ${PREFIX}/share/man
SRC != find rufs/src fuse-ufs/src -name '*.rs'
all: fuse-ufs-bin
install: fuse-ufs-bin
mkdir -p ${DESTDIR}${PREFIX}/bin ${DESTDIR}${MANPREFIX}/man8
cp -f fuse-ufs-bin ${DESTDIR}${PREFIX}/bin/fuse-ufs
cp -f docs/fuse-ufs.8 ${DESTDIR}${MANPREFIX}/man8/
ln -sf fuse-ufs ${DESTDIR}${PREFIX}/bin/mount.ufs
prepare: fmt lint
fmt:
cargo +nightly fmt
./scripts/fmt-changelog.sh
lint:
cargo clippy --all-targets
fuz:
mkdir -p fuzz/corpus/ufs/
unzstd -o fuzz/corpus/ufs/ufs-big.img -kf resources/ufs-big.img.zst
unzstd -o fuzz/corpus/ufs/ufs-little.img -kf resources/ufs-little.img.zst
# NOTE: Add -j if you want more fuzz jobs
cargo +nightly fuzz run ufs
clean:
rm -f fuse-ufs-bin
cargo clean
fuse-ufs-bin: Cargo.lock ${SRC}
cargo build --release -p fuse-ufs
cp -f target/release/fuse-ufs fuse-ufs-bin