File: rules

package info (click to toggle)
forgejo-cli 0.3.0-9
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 808 kB
  • sloc: makefile: 10
file content (15 lines) | stat: -rwxr-xr-x 478 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/make -f

%:
	dh ${@} --buildsystem cargo

override_dh_auto_test:
	dh_auto_test -- test --all

execute_after_dh_auto_install:
	# bash-completion
	mkdir -p debian/forgejo-cli/usr/share/bash-completion/completions
	TMPDIR="$$(mktemp -d)"; \
	HOME="$${TMPDIR}" XDG_CONFIG_HOME="$${TMPDIR}/.config" XDG_DATA_HOME="$${TMPDIR}/.local/share" \
		debian/forgejo-cli/usr/bin/fj completion bash > debian/forgejo-cli/usr/share/bash-completion/completions/fj
	rm -rf "$${TMPDIR}"