File: rules

package info (click to toggle)
libdevel-cover-perl 0.66-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,484 kB
  • ctags: 483
  • sloc: perl: 9,231; makefile: 10
file content (15 lines) | stat: -rwxr-xr-x 590 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/make -f

PERL_REVISION=$(shell perl -MConfig -e 'print $$Config{PERL_REVISION}')
PERL_VERSION=$(shell perl -MConfig -e 'print $$Config{PERL_VERSION}')
PERL_SUBVERSION=$(shell perl -MConfig -e 'print $$Config{PERL_SUBVERSION}')
PERL_NEXT_SUBVERSION=$(shell perl -MConfig -e 'print 1+$$Config{PERL_SUBVERSION}')

PERL_FULLVERS=$(PERL_REVISION).$(PERL_VERSION).$(PERL_SUBVERSION)
PERL_NEXTVERS=$(PERL_REVISION).$(PERL_VERSION).$(PERL_NEXT_SUBVERSION)

%:
	dh $@

override_dh_gencontrol:
	dh_gencontrol -- -V"sameperl:Depends=perl (>= $(PERL_FULLVERS)), perl (<< $(PERL_NEXTVERS)~)"