File: rules

package info (click to toggle)
nom 0.1.5-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 260 kB
  • sloc: ruby: 650; makefile: 10
file content (17 lines) | stat: -rwxr-xr-x 524 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

export DH_VERBOSE = 1
export DH_RUBY

%:
	dh $@ --buildsystem=ruby

update_manpage:
	# generate nom.1 manpage
	# needs to be called manually whenever nom --help changes output
	RUBYLIB=debian/nom/usr/lib/ruby/vendor_ruby/ \
	help2man --name "$$(grep '^Description: ' debian/control|cut -d ' ' -f2-)" \
	--section 1 --source "autogenerated from nom help" \
	--version-string "nom" --no-info \
	./bin/nom | sed -s "s#$$HOME#\\\(ti#g" > debian/nom.1
	# the sed is needed to not leak $$HOME into the manpage