]> git.r.bdr.sh - rbdr/gema_texto/blame - Makefile
Add new credentials
[rbdr/gema_texto] / Makefile
CommitLineData
8beb2bfa
RBR
1profile := dev
2target = $(shell rustc -vV | grep host | awk '{print $$2}')
3architectures := x86_64-unknown-linux-gnu aarch64-unknown-linux-gnu
4app_name := page
5
6default: build
7
8set_rust:
9 rustup default stable
10
11prepare:
12 rustup target add $(target)
13
14build: prepare
15 cargo build --profile $(profile) --target $(target)
16
17test:
18 cargo test
19
20coverage:
21 cargo tarpaulin --fail-under 100
22
23format:
24 cargo fmt && cargo clippy --fix
25
26lint:
27 cargo fmt -- --check && cargo clippy
28
29release:
30 cargo publish
31
32ci: lint coverage
33ifneq (,$(findstring refs/tags/,$(GIT_REF)))
34 $(MAKE) release
35endif
36
37.PHONY: default set_rust prepare build test coverage format lint release ci