blob: 1be8beea91ad8a76b20d2b511e8672adccc07064 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
profile := dev
target = $(shell rustc -vV | grep host | awk '{print $$2}')
architectures := x86_64-unknown-linux-gnu aarch64-unknown-linux-gnu
default: build
prepare:
rustup target add $(target)
build: prepare
cargo build --profile $(profile) --target $(target)
$(architectures):
$(MAKE) -e target=$@ rpm
rpm: build
package: $(architectures)
.PHONY: default build $(architectures) rpm package prepare
|