File: rules

package info (click to toggle)
rbot 0.9.7-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,536 kB
  • ctags: 667
  • sloc: ruby: 5,581; xml: 99; makefile: 15; sh: 1
file content (30 lines) | stat: -rwxr-xr-x 702 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
#!/usr/bin/make -f

DEB_AUTO_UPDATE_DEBIAN_CONTROL := yes

include /usr/share/cdbs/1/rules/debhelper.mk
# Including this file gets us a simple patch system.  You can just
# drop patches in debian/patches, and they will be automatically
# applied and unapplied.
include /usr/share/cdbs/1/rules/simple-patchsys.mk

MANPAGES := debian/rbot.1


build/rbot:: $(MANPAGES)

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

install/rbot::
	cp rbot.rb debian/rbot/usr/bin/rbot

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

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

clean::
	rm -f $(MANPAGES)