File: rules

package info (click to toggle)
gron 0.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,500 kB
  • sloc: sh: 84; makefile: 14
file content (22 lines) | stat: -rwxr-xr-x 583 bytes parent folder | download
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

export DH_VERBOSE = 1

override_dh_auto_build:
	dh_auto_build
	# build custom manpages
	@echo DEB_VERSION_UPSTREAM $(DEB_VERSION_UPSTREAM)
	sed -e "s/__VERSION__/$(DEB_VERSION_UPSTREAM)/g" < debian/gron.1.md.in > debian/gron.1.md
	pandoc debian/gron.1.md -s -f markdown -t man -o debian/gron.1

override_dh_auto_install:
	dh_auto_install -- --no-source

override_dh_installchangelogs:
	pandoc -f markdown_github -t plain -o CHANGELOG CHANGELOG.mkd
	dh_installchangelogs CHANGELOG

%:
	dh $@ --buildsystem=golang --with=golang