File: rules

package info (click to toggle)
mkosi 25.3-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,092 kB
  • sloc: python: 18,194; sh: 269; makefile: 12
file content (20 lines) | stat: -rwxr-xr-x 578 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

#export DH_VERBOSE = 1

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

export PYBUILD_NAME=mkosi

%:
	dh $@ --buildsystem=pybuild --with bash-completion

execute_before_dh_auto_build:
ifeq (,$(findstring nodoc,$(DEB_BUILD_PROFILES)))
	$(CURDIR)/tools/make-man-page.sh
endif

execute_after_dh_auto_build:
	USER=nonexistent HOME=/ python3 -m mkosi completion bash > $(CURDIR)/debian/bash-completion
	USER=nonexistent HOME=/ python3 -m mkosi completion fish > $(CURDIR)/debian/mkosi.fish
	USER=nonexistent HOME=/ python3 -m mkosi completion zsh > $(CURDIR)/debian/_mkosi