File: Makefile

package info (click to toggle)
rust-crypto-hash 0.3.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, trixie
  • size: 140 kB
  • sloc: makefile: 26
file content (29 lines) | stat: -rw-r--r-- 704 bytes parent folder | download | duplicates (9)
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
CARGO ?= cargo
CARGO_BUILD_TEST = $(CARGO) test --no-run
KCOV ?= kcov
TEST_APP = debug/crypto_hash-*.exe
WIN_TARGET = x86_64-pc-windows-gnu

build-test:
	$(CARGO_BUILD_TEST)

check-i686:
	PKG_CONFIG_LIBDIR=/usr/lib/i386-linux-gnu/pkgconfig \
		PKG_CONFIG_ALLOW_CROSS=1 \
		$(CARGO) test --target i686-unknown-linux-gnu --verbose

check-wine64:
	$(CARGO_BUILD_TEST) --target $(WIN_TARGET)
	WINEPREFIX=$(HOME)/.local/share/wineprefixes/wine64 wine64 target/$(WIN_TARGET)/$(TEST_APP)

cov: build-test
	$(KCOV) --exclude-pattern=/.multirust,test.rs target/cov target/$(TEST_APP)

debug: build-test
	rust-gdb target/$(TEST_APP)

fmt:
	$(CARGO) fmt

lint:
	$(CARGO) +nightly clippy -- --allow clippy::pedantic