-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (33 loc) · 960 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
37
38
all: target/release/yeast
target/release/yeast:
cargo build --release
install: target/release/yeast
cargo install --path .
clean:
cargo clean
test:
# Just a text file
cargo run tests/lorem_ipsum.in | \
cmp tests/lorem_ipsum.out
# Mix several interpreter
cargo run tests/mixed_salsa.in | \
cmp tests/mixed_salsa.out
# Play with cat behaviors
cargo run tests/cats_and_dogs.in | \
cmp tests/cats_and_dogs.out
# Use multiline command
cargo run tests/multiline_cmd.in | \
cmp tests/multiline_cmd.out
# Threading computation
cargo run tests/123_go.in | \
cmp tests/123_go.out
# Call @gcc kombucha aliase
#cargo run tests/brewed_kombucha.in | \
# cmp tests/brewed_kombucha.out
# Use $0, $1, $2, etc... syntax
cargo run tests/few_args.in foo bar | \
cmp tests/few_args.out
# Use $* for catching all args
cargo run tests/all_args.in foo bar | \
cmp tests/all_args.out
.PHONY: all target/release/yeast install test