File: rules

package info (click to toggle)
rust-ripgrep 0.10.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,528 kB
  • sloc: python: 1,125; sh: 275; ruby: 20; makefile: 19
file content (23 lines) | stat: -rwxr-xr-x 595 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
%:
	dh $@ --buildsystem cargo --with bash-completion

export TMPDIR=$(CURDIR)/tmp

override_dh_auto_configure:
	mkdir -p $(CURDIR)/tmp
	dh_auto_configure $@

override_dh_auto_clean:
	dh_auto_clean $@
	rm -rf $(CURDIR)/tmp

override_dh_install:
	mkdir -p debian/ripgrep/usr/share/zsh/vendor-completions debian/ripgrep/usr/share/fish/completions
	cp -f complete/_rg debian/ripgrep/usr/share/zsh/vendor-completions/
	cp -f target/*/release/build/*/out/rg.fish debian/ripgrep/usr/share/fish/completions/
	dh_install
	dh_missing

override_dh_auto_test:
	dh_auto_test -- test --all