File: rules

package info (click to toggle)
procmail-lib 1%3A2009.1202-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,376 kB
  • sloc: perl: 294; makefile: 177; sh: 4
file content (30 lines) | stat: -rwxr-xr-x 828 bytes parent folder | download | duplicates (4)
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

PACKAGE		= procmail-lib
PKGDIR		= $(shell pwd)/debian/$(PACKAGE)
PKGDOCDIR       = $(PKGDIR)/usr/share/doc/$(PACKAGE)
DIRLINTIAN      = $(PKGDIR)/usr/share/lintian/overrides

override_dh_auto_install:
	# The *.1 might be regenerated by the Makefile. Save and
	# restore original to prevent it from appearing in a Debian
	# diff

	cp lib-stebbens/proclint.1 lib-stebbens/proclint.1.orig
	$(MAKE) DESTDIR=$(PKGDIR) prefix=/usr install
	mv lib-stebbens/proclint.1.orig lib-stebbens/proclint.1

	# Do not include standard GNU license files in Debian package

	rm -f $(PKGDOCDIR)/lib-stebbens/GNU-LICENSE*
	rm -f $(PKGDOCDIR)/lib-stebbens/Copyright

	# Install Lintian override file

	install -d $(DIRLINTIAN)
	install -m 644 debian/$(PACKAGE).lintian-overrides $(DIRLINTIAN)/$(PACKAGE)

%:
	dh $@

# End of file