]> git.r.bdr.sh - rbdr/blog/blob - Makefile
Attempt to build with sourcehut
[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