]>
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 | ||
a04ba49c RBR |
7 | prepare: |
8 | rustup target add $(target) | |
d620665f | 9 | |
a04ba49c RBR |
10 | build: prepare |
11 | cargo build --profile $(profile) --target $(target) | |
12 | ||
13 | $(architectures): | |
14 | $(MAKE) -e target=$@ rpm | |
15 | ||
16 | rpm: build | |
17 | ||
18 | package: $(architectures) | |
19 | ||
20 | .PHONY: default build $(architectures) rpm package prepare |