File: rules

package info (click to toggle)
ruby-adsf 1.2.1%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 140 kB
  • ctags: 30
  • sloc: ruby: 185; makefile: 11
file content (17 lines) | stat: -rwxr-xr-x 462 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

export GEM2DEB_TEST_RUNNER = --check-dependencies
UPSTREAM_VERSION = $(shell dpkg-parsechangelog | awk '{ if ($$1 == "Version:") { print($$2) } }' | cut -d - -f 1)

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


override_dh_installman:
	INLINEDIR=. help2man --no-info --include=debian/adsf.h2m \
		  -h "-I lib/ bin/adsf -h"  --version-string $(UPSTREAM_VERSION) /usr/bin/ruby  > adsf.1
	dh_installman

override_dh_clean:
	rm -f adsf.1
	dh_clean