-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·25 lines (19 loc) · 968 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
#!/usr/bin/make -f
GLIBC_TARGET:=x86_64-unknown-linux-gnu
MUSL_TARGET:=x86_64-unknown-linux-musl
.PHONY: all
build-release:
@cargo build --release --target=$(GLIBC_TARGET)
@cargo build --release --target=$(MUSL_TARGET)
completions: build-release
@mkdir -p target/completions.d/
@target/$(MUSL_TARGET)/release/escalator-completion bash > target/completions.d/bash
@target/$(MUSL_TARGET)/release/escalator-completion fish > target/completions.d/fish
@target/$(MUSL_TARGET)/release/escalator-completion zsh > target/completions.d/zsh
@target/$(MUSL_TARGET)/release/escalator-completion elvish > target/completions.d/elvish
deploy: build-release completions
@mkdir -p target/deploy
@rsync -a --delete target/completions.d/ target/deploy/completions.d/
@cp target/$(GLIBC_TARGET)/release/escalator target/deploy/escalator-$(GLIBC_TARGET)
@cp target/$(MUSL_TARGET)/release/escalator target/deploy/escalator-$(MUSL_TARGET)
release: build-release completions