]>
Commit | Line | Data |
---|---|---|
a04ba49c RBR |
1 | profile := dev |
2 | target = $(shell rustc -vV | grep host | awk '{print $$2}') | |
3 | architectures := x86_64-unknown-linux-gnu aarch64-unknown-linux-gnu | |
d620665f RBR |
4 | |
5 | default: build | |
6 | ||
5c7a9258 RBR |
7 | set_rust: |
8 | rustup default stable | |
9 | ||
a04ba49c RBR |
10 | prepare: |
11 | rustup target add $(target) | |
d620665f | 12 | |
a04ba49c RBR |
13 | build: prepare |
14 | cargo build --profile $(profile) --target $(target) | |
15 | ||
16 | $(architectures): | |
17 | $(MAKE) -e target=$@ rpm | |
18 | ||
19 | rpm: build | |
20 | ||
21 | package: $(architectures) | |
22 | ||
5c7a9258 | 23 | .PHONY: default build $(architectures) rpm package prepare set_rust |