]> git.r.bdr.sh - rbdr/gema_texto/blob - Makefile
Fix lints
[rbdr/gema_texto] / 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 app_name := page
5
6 default: build
7
8 set_rust:
9 rustup default stable
10
11 prepare:
12 rustup target add $(target)
13
14 build: prepare
15 cargo build --profile $(profile) --target $(target)
16
17 test:
18 cargo test
19
20 coverage:
21 cargo tarpaulin --fail-under 100
22
23 format:
24 cargo fmt && cargo clippy --fix
25
26 lint:
27 cargo fmt -- --check && cargo clippy
28
29 release:
30 cargo publish
31
32 ci: lint coverage
33 ifneq (,$(findstring refs/tags/,$(GIT_REF)))
34 $(MAKE) release
35 endif
36
37 .PHONY: default set_rust prepare build test coverage format lint release ci