]> git.r.bdr.sh - rbdr/blog/blame_incremental - Makefile
Attempt to build with sourcehut
[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
7prepare:
8 rustup target add $(target)
9
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