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