]> git.r.bdr.sh - rbdr/blog/blob - Makefile
1be8beea91ad8a76b20d2b511e8672adccc07064
[rbdr/blog] / Makefile
1 profile := dev
2 target = $(shell rustc -vV | grep host | awk '{print $$2}')
3 architectures := x86_64-unknown-linux-gnu aarch64-unknown-linux-gnu
4
5 default: build
6
7 prepare:
8 rustup target add $(target)
9
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