File: rules

package info (click to toggle)
docdiff 0.5.0%2Bgit20160313-1
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 896 kB
  • ctags: 722
  • sloc: ruby: 14,138; makefile: 98; lisp: 33; sh: 26
file content (32 lines) | stat: -rwxr-xr-x 1,081 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.
#
# Modified to make a template file for a multi-binary package with separated
# build-arch and build-indep targets  by Bill Allombert 2001

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

# This has to be exported to make some magic below work.
export DH_OPTIONS

%:
	dh $@

clean:
	dh clean
	-rm -f docdiff.1

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

override_dh_auto_install:
	$(MAKE) DESTDIR=$(CURDIR)/debian/docdiff PREFIX=/usr install
	sed -e "s/\/usr\/bin\/env ruby/\/usr\/bin\/ruby/" -i $(CURDIR)/debian/docdiff/usr/bin/docdiff
	rm $(CURDIR)/debian/docdiff/usr/share/docdiff/viewdiff.rb
	mv $(CURDIR)/debian/docdiff/usr/share/docdiff/* $(CURDIR)/debian/docdiff/usr/lib/ruby/vendor_ruby/
	rm -rf $(CURDIR)/debian/docdiff/usr/share/docdiff
	rm $(CURDIR)/debian/docdiff/usr/share/doc/docdiff/ChangeLog
	install -o root -g root -m 0644 docdiff.1 $(CURDIR)/debian/docdiff/usr/share/man/man1