File: rules

package info (click to toggle)
ruby-fcgi 0.9.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid, stretch
  • size: 132 kB
  • ctags: 151
  • sloc: ruby: 524; ansic: 518; makefile: 10
file content (16 lines) | stat: -rwxr-xr-x 618 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f

export GEM2DEB_TEST_RUNNER = --check-dependencies

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

override_dh_auto_install:
	if grep '# Use ruby extconf.rb to generate makefile' ext/fcgi/Makefile; then mv ext/fcgi/Makefile ext/fcgi/Makefile.dummy; fi
	dh_auto_install -O--buildsystem=ruby

override_dh_auto_clean:
	# restore included dummy makefile
	if grep '# Use ruby extconf.rb to generate makefile' ext/fcgi/Makefile; then mv ext/fcgi/Makefile ext/fcgi/Makefile.dummy; fi
	dh_auto_clean -O--buildsystem=ruby
	if test -f ext/fcgi/Makefile.dummy; then mv ext/fcgi/Makefile.dummy ext/fcgi/Makefile; fi