Debian Codegraph @

Makefile

raw symbols SCIP
1 build:
2 cargo build --release
3
4 format:
5 git ls-files | grep '\.rs$$' | xargs -P 0 rustfmt
6
7 lint:
8 cargo clippy
9
10 test: unit-test end-to-end-test
11
12 unit-test:
13 cargo test
14
15 end-to-end-test: build
16 ./tests/test_raw_output_matches_git_on_full_repo_history
17 ./tests/test_deprecated_options > /dev/null
18 ./tests/test_navigate_less_history_file
19
20 shell-completion:
21 for shell in bash fish zsh; do ./target/release/delta --generate-completion $$shell > etc/completion/completion.$$shell; done
22
23 release:
24 @make -f release.Makefile release
25
26 version:
27 @grep version Cargo.toml | head -n1 | sed -E 's,.*version = "([^"]+)",\1,'
28
29 BENCHMARK_INPUT_FILE = /tmp/delta-benchmark-input.gitdiff
30 BENCHMARK_COMMAND = git log -p 23c292d3f25c67082a2ba315a187268be1a9b0ab
31 benchmark: build
32 $(BENCHMARK_COMMAND) > $(BENCHMARK_INPUT_FILE)
33 hyperfine --warmup 10 --min-runs 20 \
34 'target/release/delta --no-gitconfig < $(BENCHMARK_INPUT_FILE) > /dev/null'
35
36 # https://github.com/brendangregg/FlameGraph
37 flamegraph: build
38 $(BENCHMARK_COMMAND) | target/release/delta > /dev/null &
39 sample delta | stackcollapse-sample | flamegraph > etc/performance/flamegraph.svg
40
41 chronologer:
42 chronologer etc/performance/chronologer.yaml
43
44 .PHONY: build format lint test unit-test end-to-end-test release shell-completion version benchmark flamegraph chronologer