-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathMakefile
50 lines (34 loc) · 1.15 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
# CargoMake by NeoSmart Technologies
# Written and maintained by Mahmoud Al-Qudsi <[email protected]>
# Released under the MIT public license
# Obtain updates from https://github.com/neosmart/CargoMake
COLOR ?= always # Valid COLOR options: {always, auto, never}
CARGO = cargo --color $(COLOR)
.PHONY: all bench build check clean doc install publish run test update target/x86_64-unknown-linux-musl/release/ssclient
all: build
bench:
@$(CARGO) bench
build:
@$(CARGO) build
check:
@$(CARGO) check
clean:
@$(CARGO) clean
doc:
@$(CARGO) doc
install: build
@$(CARGO) install
publish:
@$(CARGO) publish
run: build
@$(CARGO) run
test: build
@$(CARGO) test
update:
@$(CARGO) update
target/x86_64-unknown-linux-musl/release/ssclient:
env RUSTFLAGS= cargo build --target x86_64-unknown-linux-musl --release --features openssl-vendored
strip target/x86_64-unknown-linux-musl/release/ssclient
ssclient-xxx-linux.tar.gz: target/x86_64-unknown-linux-musl/release/ssclient ssclient/README.md LICENSE
tar cvzf ssclient-xxx-linux.tar.gz LICENSE -C ssclient/ README.md -C ../target/x86_64-unknown-linux-musl/release/ ssclient
release: ssclient-xxx-linux.tar.gz