File: rules

package info (click to toggle)
ruby-prof 0.4.1-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 348 kB
  • ctags: 275
  • sloc: ruby: 990; ansic: 939; makefile: 20
file content (28 lines) | stat: -rwxr-xr-x 812 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
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk

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

configure/ruby-prof::
	(cd ext && ruby extconf.rb)

build/ruby-prof::
	make -C ext

install/ruby-prof::
	mkdir -p debian/ruby-prof/$(RUBY_ARCHDIR)
	mkdir -p debian/ruby-prof/usr/bin
	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/profiletask.rb
	cp bin/ruby-prof debian/ruby-prof/usr/bin
	cp ext/ruby_prof.so debian/ruby-prof/$(RUBY_ARCHDIR)

cleanbuilddir/ruby-prof::
	([ -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