File: rules

package info (click to toggle)
libconfig-model-dpkg-perl 3.014
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,200 kB
  • sloc: perl: 8,255; python: 242; makefile: 77; javascript: 16; sh: 1
file content (29 lines) | stat: -rwxr-xr-x 731 bytes parent folder | download | duplicates (5)
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
#!/usr/bin/make -f

TMP     = $(CURDIR)/debian/tmp/

RAKUDO_VERSION = $(shell perl6 --version | perl -n -E 'm/version\s+([\d.]+)/; say $$1;')

%:
	dh $@

# Configure.pl won't run when a .git dir is present
# unless --force option is used
override_dh_auto_configure:
	perl Configure.pl --prefix=/usr --backends=moar --force

override_dh_gencontrol:
	dh_gencontrol -- -Vrakudo:Depends="rakudo (>= $(RAKUDO_VERSION))"

override_dh_auto_build:
	echo "Skipping make step"

override_dh_auto_test:
	echo "Tests must be done after module-install"

override_dh_auto_install:
	mkdir -p $(TMP)/usr/bin
	export DESTDIR=$(TMP) ; make modules-install
	export DESTDIR=$(TMP) ; \
	export RAKUDOLIB=$(TMP)usr/share/perl6/lib ; \
	make modules-test