Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 include /usr/share/dpkg/pkg-info.mk # DEB_VERSION
4
5 %:
6 dh $@ --builddirectory=_build --buildsystem=golang
7
8 B = $(CURDIR)/debian/tmp/usr/bin
9 M = $(CURDIR)/debian/tmp/usr/share/man
10
11 ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES)))
12 execute_before_dh_installman-arch:
13 mkdir -pv $(M)/man1
14 help2man --version-string="$(DEB_VERSION)" \
15 --no-info \
16 --name="run program in Landlock sandbox" \
17 --output $(M)/man1/landrun.1 \
18 $(B)/landrun
19 endif