File: rules

package info (click to toggle)
libcommon-sense-perl 3.74-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 184 kB
  • ctags: 5
  • sloc: makefile: 14
file content (22 lines) | stat: -rwxr-xr-x 849 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
#!/usr/bin/make -f

PACKAGE = $(shell dh_listpackages)
TMP     = $(CURDIR)/debian/$(PACKAGE)

# maybe we only need the patchlevel and not the subversion here?
# better save than sorry, and better consistent with other packages ...
PERL_CURRENT := $(shell perl -MConfig -e 'print "$$Config{revision}.$$Config{patchlevel}.$$Config{subversion}"')
PERL_NEXT    := $(shell perl -MConfig -e 'print "$$Config{revision}.$$Config{patchlevel}." . ($$Config{subversion} + 1)')
ARCHLIB      := $(shell perl -MConfig -e 'print $$Config{vendorarch}')

%:
	dh $@

override_dh_auto_install:
	dh_auto_install
	pod2man --name "common::sense" --utf8 --section 3pm \
		$(TMP)$(ARCHLIB)/common/sense.pod > \
		$(TMP)/usr/share/man/man3/common::sense.3pm

override_dh_gencontrol:
	dh_gencontrol -- -V'sameperl:Depends=perl (>= $(PERL_CURRENT)~), perl (<< $(PERL_NEXT)~)'