File: rules

package info (click to toggle)
rust-exa 0.10.1-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,504 kB
  • sloc: sh: 57; perl: 29; makefile: 20
file content (25 lines) | stat: -rwxr-xr-x 838 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
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

%:
	dh $@ --buildsystem cargo --with bash-completion

override_dh_install:
	mkdir -p debian/exa/usr/share/fish/completions/ debian/exa/usr/share/zsh/vendor-completions/
	cp -f completions/completions.fish debian/exa/usr/share/fish/completions/exa.fish
	chmod -x debian/exa/usr/share/fish/completions/exa.fish
	cp -f completions/completions.zsh debian/exa/usr/share/zsh/vendor-completions/_exa
	dh_install

override_dh_installman:
	pandoc --standalone -f markdown -t man man/exa.1.md        > debian/exa.1
	pandoc --standalone -f markdown -t man man/exa_colors.5.md > debian/exa_colors.5
	dh_installman -O--buildsystem=cargo

override_dh_auto_test:
	dh_auto_test || true

override_dh_dwz:
	# Don't do anything. fails because of the
	# https://github.com/rust-lang/rust/issues/66118