]> git.r.bdr.sh - rbdr/blog/blame - Makefile
Don't add rust if rustup is there
[rbdr/blog] / Makefile
CommitLineData
a04ba49c
RBR
1profile := dev
2target = $(shell rustc -vV | grep host | awk '{print $$2}')
3architectures := x86_64-unknown-linux-gnu aarch64-unknown-linux-gnu
d620665f
RBR
4
5default: build
6
a04ba49c
RBR
7prepare:
8 rustup target add $(target)
d620665f 9
a04ba49c
RBR
10build: prepare
11 cargo build --profile $(profile) --target $(target)
12
13$(architectures):
14 $(MAKE) -e target=$@ rpm
15
16rpm: build
17
18package: $(architectures)
19
20.PHONY: default build $(architectures) rpm package prepare