File: rules

package info (click to toggle)
trippy 0.12.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,744 kB
  • sloc: sh: 49; makefile: 28
file content (23 lines) | stat: -rwxr-xr-x 544 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
#!/usr/bin/make -f

include /usr/share/rustc/architecture.mk

CARGO_BASE_ARGS = --release --target $(DEB_TARGET_RUST_TYPE)
BIN = --bin trip

%:
	dh $@ --with shell_completions

execute_before_dh_auto_configure:
	mkdir -p .cargo
	cp debian/cargo-config.toml .cargo/config.toml

override_dh_auto_build:
	cargo build $(CARGO_BASE_ARGS) $(BIN)
	cargo run $(CARGO_BASE_ARGS) $(BIN) -- --generate-man > debian/trip.1

override_dh_auto_test:
	cargo test $(CARGO_BASE_ARGS)

restore-orig:
	git diff --name-only | grep -v '^debian/' | xargs git restore