File: rules

package info (click to toggle)
thin 1.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,336 kB
  • sloc: javascript: 6,108; ruby: 5,039; ansic: 1,738; sh: 83; makefile: 11
file content (16 lines) | stat: -rwxr-xr-x 471 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f

INSTALLED_GEM_PATH=$(shell ruby -e 'puts Gem.default_path.map { |x| ["debian/thin"+x, x] }.flatten.join(":")')
export GEM2DEB_TEST_RUNNER = --check-dependencies
export DH_RUBY = --gem-install

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

override_dh_install:
	ruby ./debian/gen_init.rb
	dh_install

override_dh_installman:
	GEM_PATH=$(INSTALLED_GEM_PATH) help2man -n "fast and very simple Ruby web server" ./bin/thin > debian/thin.manpage
	dh_installman