| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
#export DH_VERBOSE = 1 |
| 4 |
|
| 5 |
include /usr/share/dpkg/pkg-info.mk |
| 6 |
|
| 7 |
export PYBUILD_NAME=mkosi |
| 8 |
|
| 9 |
%: |
| 10 |
dh $@ --buildsystem=pybuild --with bash-completion |
| 11 |
|
| 12 |
execute_before_dh_auto_build: |
| 13 |
ifeq (,$(findstring nodoc,$(DEB_BUILD_PROFILES))) |
| 14 |
$(CURDIR)/tools/make-man-page.sh |
| 15 |
endif |
| 16 |
|
| 17 |
execute_after_dh_auto_build: |
| 18 |
USER=nonexistent HOME=/ python3 -m mkosi completion bash > $(CURDIR)/debian/bash-completion |
| 19 |
USER=nonexistent HOME=/ python3 -m mkosi completion fish > $(CURDIR)/debian/mkosi.fish |
| 20 |
USER=nonexistent HOME=/ python3 -m mkosi completion zsh > $(CURDIR)/debian/_mkosi |