File: rules

package info (click to toggle)
ruby-ffi 1.15.5%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,752 kB
  • sloc: ruby: 8,626; ansic: 6,986; xml: 151; sh: 51; makefile: 15
file content (21 lines) | stat: -rwxr-xr-x 458 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
#!/usr/bin/make -f

ifeq (ia64, $(shell dpkg-architecture -qDEB_BUILD_ARCH))
	export DH_RUBY_IGNORE_TESTS=all
endif

export GEM2DEB_TEST_RUNNER = --check-dependencies
export DH_RUBY = --gem-install

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

override_dh_auto_clean:
	dh_auto_clean
	rm -rf build/
	rm -f spec/ffi/fixtures/*.so
	rm -f spec/ffi/fixtures/*.o

gen_arch_config:
	(cd ext/ffi_c && ruby extconf.rb && make && cp ffi_c.so ../../lib)
	(cd gen && rake)