-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
40 lines (31 loc) · 1.27 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
.PHONY: publish
publish: release ## alias for `make release`
.PHONY: release
release: ## Publish a new release
(cd cargo-quickinstall/ && cargo release patch --execute --no-push)
git push origin HEAD:release --tags
make recheck
.PHONY: windows
windows: ## trigger a windows build
RECHECK=1 TARGET_ARCH=x86_64-pc-windows-msvc ./trigger-package-build.sh
.PHONY: mac
mac: ## trigger a mac build
RECHECK=1 TARGET_ARCH=x86_64-apple-darwin ./trigger-package-build.sh
.PHONY: m1
m1: ## trigger a mac m1 build
RECHECK=1 TARGET_ARCH=aarch64-apple-darwin ./trigger-package-build.sh
.PHONY: linux
linux: ## trigger a linux build
RECHECK=1 TARGET_ARCH=x86_64-unknown-linux-gnu ./trigger-package-build.sh
.PHONY: linux-musl
linux-musl: ## trigger a musl libc-based linux build
RECHECK=1 TARGET_ARCH=x86_64-unknown-linux-musl ./trigger-package-build.sh
.PHONY: exclude
exclude: ## recompute excludes, but don't push anywhere (see /tmp/cargo-quickinstall-* for repos)
REEXCLUDE=1 ./trigger-package-build.sh
.PHONY: recheck
recheck: ## recompute excludes and start from the top
RECHECK=1 ./trigger-package-build.sh
.PHONY: help
help: ## Display this help screen
@grep -E '^[a-z.A-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'