-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
74 lines (58 loc) · 2.83 KB
/
Copy pathMakefile
File metadata and controls
74 lines (58 loc) · 2.83 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
all:
cargo build --release
test_intersection: target/release/intersection
test/intersection-run
test_priorities: target/release/priorities
test/priorities-run
test_bag: target/release/test-bag
target/release/test-bag --random-len 50000000 --slice-len 500000
test: test_intersection test_priorities test_bag
cargo test --release
git status > /dev/null || true
miri: miri-bag miri-shared_region miri-lst-segmented miri-lst
miri-shared_region:
RUST_LOG=trace MIRIFLAGS='-Zmiri-tree-borrows -Zmiri-disable-isolation' \
cargo +nightly miri run --bin test-shared_region
miri-bag:
RUST_LOG=trace MIRIFLAGS='-Zmiri-tree-borrows -Zmiri-disable-isolation' \
cargo +nightly miri run --bin test-bag -- --random-len 500000 --slice-len 5000
# -Zmiri-ignore-leaks only because of threads that are not joined
# (perhaps the rayon thread pools?). Requires a dir ~/.mozilla with
# some stuff in it (something like ~2600 entries).
miri-lst:
RUST_LOG=trace MIRIFLAGS='-Zmiri-ignore-leaks -Zmiri-tree-borrows -Zmiri-disable-isolation' \
cargo +nightly miri run --bin lst -- -rt --find ~/.mozilla tail 10 --dev-old-path
miri-lst-segmented:
RUST_LOG=trace MIRIFLAGS='-Zmiri-ignore-leaks -Zmiri-tree-borrows -Zmiri-disable-isolation' \
cargo +nightly miri run --bin lst -- -rt --find ~/.mozilla tail 10
target/release/%: src/bin/%.rs src/*.rs src/io/*.rs src/parse/*.rs src/text/*.rs src/time/*.rs src/util/*.rs
cargo build --release
touch $@
# ^ touch because cargo won't update binaries if they don't depend on
# a src/*.rs file; and then running make as root again runs cargo
# again, which is rebuilding everything.
/usr/local/bin/lastitem: target/release/lastitem
install target/release/lastitem /usr/local/bin/lastitem
rm -f /usr/local/bin/lastfile && ln -s -r /usr/local/bin/lastitem /usr/local/bin/lastfile
rm -f /usr/local/bin/lastdir && ln -s -r /usr/local/bin/lastitem /usr/local/bin/lastdir
/usr/local/bin/e: target/release/e
install target/release/e /usr/local/bin/e
rm -f /usr/local/bin/ew && ln -s -r /usr/local/bin/e /usr/local/bin/ew
rm -f /usr/local/bin/eg && ln -s -r /usr/local/bin/e /usr/local/bin/eg
rm -f /usr/local/bin/g && ln -s -r /usr/local/bin/e /usr/local/bin/g
rm -f /usr/local/bin/v && ln -s -r /usr/local/bin/e /usr/local/bin/v
rm -f /usr/local/bin/vg && ln -s -r /usr/local/bin/e /usr/local/bin/vg
rm -f /usr/local/bin/f && ln -s -r /usr/local/bin/e /usr/local/bin/f
rm -f /usr/local/bin/fw && ln -s -r /usr/local/bin/e /usr/local/bin/fw
/usr/local/bin/%: target/release/%
install $< $@
install: /usr/local/bin/lastitem
install: /usr/local/bin/symlinks-index
install: /usr/local/bin/e
install: /usr/local/bin/intersection
install: /usr/local/bin/priorities
install: /usr/local/bin/duu
install: /usr/local/bin/lst
install: /usr/local/bin/onthemove
install: /usr/local/bin/debian-version
.PHONY: test test_intersection