File: rules

package info (click to toggle)
ruby-prof 0.7.3-1.1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 468 kB
  • sloc: ruby: 2,377; ansic: 1,431; makefile: 31
file content (41 lines) | stat: -rwxr-xr-x 1,124 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
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/make -f

include /usr/share/quilt/quilt.make

RUBY_ARCHDIR=$(strip $(shell ruby1.8 -rrbconfig -e 'puts Config::CONFIG["archdir"]'))

build: patch
	dh build --until dh_auto_configure
	(cd ext && ruby1.8 extconf.rb)
	make -C ext
	dh build --after dh_auto_build

clean: unpatch
	([ -f ext/Makefile ] && make -C ext clean) || true
	rm -f ext/ruby_prof.so
	rm -f ext/ruby_prof.o
	rm -f ext/Makefile ext/mkmf.log
	dh clean

install: build
	dh install --until dh_auto_install
	mkdir -p debian/ruby-prof/$(RUBY_ARCHDIR)
	mkdir -p debian/ruby-prof/usr/bin
	mkdir -p debian/ruby-prof/usr/lib/ruby/1.8
	cp -r lib/ruby-prof debian/ruby-prof/usr/lib/ruby/1.8
	cp lib/*.rb debian/ruby-prof/usr/lib/ruby/1.8
	chmod a-x debian/ruby-prof/usr/lib/ruby/1.8/ruby-prof/*.rb
	cp bin/ruby-prof debian/ruby-prof/usr/bin
	cp ext/ruby_prof.so debian/ruby-prof/$(RUBY_ARCHDIR)
	mkdir -p debian/ruby-prof/usr/share/doc/ruby-prof
	cp CHANGES debian/ruby-prof/usr/share/doc/ruby-prof/changelog
	dh install --after dh_auto_install

binary-arch: install
	dh binary-arch

binary-indep: install
	dh binary-indep

binary: binary-arch binary-indep