-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
84 lines (67 loc) · 2.04 KB
/
Makefile
File metadata and controls
84 lines (67 loc) · 2.04 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
75
76
77
78
79
80
81
82
83
84
rust-version:
rustc --version # rustc compiler
cargo --version # cargo package manager
rustfmt --version # rust formatter
rustup --version # rust toolchain manager
clippy-driver --version # rust linter
format:
cargo fmt
lint:
cargo clippy
test:
cargo test
run:
cargo run -r
build:
cargo update
cargo build
ssm-session:
cargo update
cargo build -r --bin ssm-session
strip target/release/ssm-session
scale-in-ecs:
cargo update
cargo build -r --bin scale-in-ecs
strip target/release/scale-in-ecs
ecr-gitconfig:
cargo update
cargo build -r --bin ecr-gitconfig
strip target/release/ecr-gitconfig
ses-suppression-list:
cargo update
cargo build -r --bin ses-suppression-list
strip target/release/ses-suppression-list
s3-guardduty-copy:
cargo update
cargo build -r --bin s3-guardduty-copy
strip target/release/s3-guardduty-copy
release: ssm-session scale-in-ecs ecr-gitconfig ses-suppression-list s3-guardduty-copy
all:
cargo build -r
strip target/release/ssm-session
strip target/release/scale-in-ecs
strip target/release/ecr-gitconfig
strip target/release/ses-suppression-list
strip target/release/s3-guardduty-copy
install: all
cp target/release/ssm-session ~/.local/bin
cp target/release/scale-in-ecs ~/.local/bin
cp target/release/ecr-gitconfig ~/.local/bin
cp target/release/ses-suppression-list ~/.local/bin
cp target/release/release-codepipelines ~/.local/bin
cp target/release/s3-guardduty-copy ~/.local/bin
clean:
cargo clean
rm -rf target
uninstall: clean
rm -f ~/.local/bin/ssm-session
rm -f ~/.local/bin/scale-in-ecs
rm -f ~/.local/bin/ecr-gitconfig
rm -f ~/.local/bin/ses-suppression-list
rm -f ~/.local/bin/release-codepipelines
rm -f ~/.local/bin/s3-guardduty-copy
upgrade:
rustup update
for i in $$(cat Cargo.toml | grep '^aws-' | awk '{ print $$1 }'); do cargo remove $$i; cargo add $$i -F behavior-version-latest; done
cargo update
.PHONY: rust-version format lint test run build ssm-session scale-in-ecs ecr-gitconfig ses-suppression-list s3-guardduty-copy release install clean uninstall all upgrade