File: rules

package info (click to toggle)
rbot 0.9.10-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,036 kB
  • ctags: 941
  • sloc: ruby: 11,429; xml: 109; makefile: 23
file content (40 lines) | stat: -rwxr-xr-x 1,194 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
#!/usr/bin/make -f

DEB_AUTO_UPDATE_DEBIAN_CONTROL := yes

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

MANPAGES := debian/rbot.1


# configure and build should not be relaunched in binary rule

build/rbot:: $(MANPAGES)
	ruby setup.rb config --prefix=/usr --siteruby=/usr/lib/ruby
	ruby setup.rb setup

%.1: %.xml
	xsltproc -nonet -o $@ /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl $<

install/rbot::
	ruby setup.rb install --prefix=debian/rbot
	# figlet is non-free, that's why this package would not recommend such a nasty program in any way
	rm debian/rbot/usr/share/rbot/plugins/figlet.rb
	rm debian/rbot/usr/share/rbot/contrib/plugins/figlet.rb
	# disabled plugins
	mv debian/rbot/usr/share/rbot/plugins/tinyurl.rb debian/rbot/usr/share/rbot/plugins/tinyurl.rb.disabled
	mv debian/rbot/usr/share/rbot/plugins/urban.rb debian/rbot/usr/share/rbot/plugins/urban.rb.disabled

binary-install/rbot::
	dh_installman -prbot $(MANPAGES)

binary-predeb/rbot::
	find debian/rbot -type d -name ".arch-ids" -depth -exec rm -rf {} \;

clean:: 
	ruby setup.rb clean
	rm -f $(MANPAGES)
	# buildsys fix
	rm -f lib/rbot/pkgconfig.rb