File: Makefile

package info (click to toggle)
rust-msvc-demangler 0.10.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 408 kB
  • sloc: makefile: 32
file content (36 lines) | stat: -rw-r--r-- 769 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
all: check test
.PHONY: all

check-source:
	@cargo check
.PHONY: check-source

check-format:
	@rustup component add rustfmt --toolchain stable 2> /dev/null
	@cargo +stable fmt -- --check
.PHONY: check-format

check: check-source check-format
.PHONY: check

test-cargo:
	@cargo test
.PHONY: test-cargo

test-wasm-build:
	@rustup target add wasm32-unknown-unknown --toolchain stable 2> /dev/null
	@cargo build --target=wasm32-unknown-unknown
.PHONY: test-cargo

test: test-cargo test-wasm-build
.PHONY: test

lint:
	@rustup component add clippy --toolchain stable 2> /dev/null
	@cargo +stable clippy --all --tests -- -D clippy::all
.PHONY: lint

update-readme:
	@cargo-readme -V &> /dev/null || cargo install cargo-readme
	@cargo readme > README.md
.PHONY: update-readme