-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathjustfile
More file actions
34 lines (30 loc) · 983 Bytes
/
Copy pathjustfile
File metadata and controls
34 lines (30 loc) · 983 Bytes
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
hello:
printf '#include <stdio.h>\nvoid hello()\n{\n printf("hello world\\n");\n}\nint main()\n{\n hello();\n return 0;\n}' > hello.c && gcc -g hello.c -o hello
demo:
gcc -g -static book/vhs/demo.c -o book/vhs/demo
gcc -g book/vhs/demo.c -o book/vhs/demo_dyn
update-screenshots: hello demo build
vhs docs/vhs/main.tape
vhs docs/vhs/hexdump.tape
vhs docs/vhs/readme.tape
vhs book/vhs/main_view.tape
vhs book/vhs/registers_view.tape
vhs book/vhs/hexdump_view.tape
vhs book/vhs/symbols_view.tape
vhs book/vhs/stack_view.tape
vhs book/vhs/instructions_view.tape
vhs book/vhs/source_view.tape
vhs book/vhs/mapping_view.tape
vhs book/vhs/tab_cycle.tape
run: hello
RUST_LOG=trace cargo r --release -- --cmds test-sources/readme.source --log-path heretek.log
# Matches .github
build:
cargo build --release --bins
test: build
cargo test --release
bench:
cargo bench
lint:
cargo fmt
cargo clippy