File: rules

package info (click to toggle)
snid 0.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 140 kB
  • sloc: sh: 39; makefile: 17
file content (22 lines) | stat: -rwxr-xr-x 474 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/make -f
include /usr/share/dpkg/pkg-info.mk

%:
	dh $@ --builddirectory=_build --buildsystem=golang

HELP2MAN_FLAGS = \
        --version-string=$(DEB_VERSION) \
        --no-info \
	--section 8 \
        --no-discard-stderr

execute_before_dh_installman:
	mkdir -p debian/tmp
	PATH=debian/snid/usr/bin/:$$PATH \
	  help2man $(HELP2MAN_FLAGS) \
	    -i debian/snid.h2m \
	    > debian/snid.8 \
	    snid

override_dh_auto_install:
	dh_auto_install -- --no-source