File: rules

package info (click to toggle)
libmodule-corelist-perl 5.20210220-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,148 kB
  • sloc: perl: 22,498; sh: 9; makefile: 7
file content (13 lines) | stat: -rwxr-xr-x 471 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/make -f

CURRENT_PERL := $(shell perl -e 'print $$]')

%:
	dh $@

override_dh_auto_build:
	dh_auto_build

	# safeguard against a Module::CoreList version which doesn't know about the current Perl
	@echo Checking support for Perl $(CURRENT_PERL)
	@perl -Iblib/lib -MModule::CoreList -E '$$date=$$Module::CoreList::released{"$(CURRENT_PERL)"} or say "Perl $(CURRENT_PERL) not supported by version $$Module::CoreList::VERSION of Module::CoreList"; exit !$$date;'