File: rules

package info (click to toggle)
docdiff 0.4.0-2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 1,196 kB
  • sloc: ruby: 12,810; makefile: 102; lisp: 33
file content (21 lines) | stat: -rwxr-xr-x 678 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
include /usr/share/cdbs/1/rules/debhelper.mk

DEB_MAKE_CLEAN_TARGET = 
DEB_MAKE_BUILD_TARGET =
DEB_MAKE_INSTALL_TARGET =
RUBY := ruby1.9.1
RLIBDIR := /usr/lib/ruby/vendor_ruby

clean::
	-rm -f docdiff.1

build/docdiff::
	/usr/bin/docbook-to-man debian/manpage.sgml > docdiff.1

install/docdiff::
	install -o root -g root -d $(DEB_DESTDIR)$(RLIBDIR)
	tar cf - docdiff | ( cd $(DEB_DESTDIR)$(RLIBDIR) && tar xvf -)
	install -o root -g root -m 0755 docdiff.rb $(DEB_DESTDIR)/usr/bin/docdiff
	install -o root -g root -m 0644 docdiff.conf.example $(DEB_DESTDIR)/etc/docdiff/docdiff.conf
	install -o root -g root -m 0644 docdiff.1 $(DEB_DESTDIR)/usr/share/man/man1