File: rules

package info (click to toggle)
nqp 2018.12+dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 8,780 kB
  • sloc: java: 26,424; perl: 1,067; makefile: 15; sh: 1
file content (23 lines) | stat: -rwxr-xr-x 720 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/make -f

# moar is often *not* backward compatible
MOARVM_VERSION = $(shell moar --version | perl -n -E 'm/([\d.]+)/; say $$1;')
MOARVM_NEXT = $(shell moar --version | perl -n -E 'my ($$y,$$m) = m/(2\d+)\.(\d+)/; if ($$m < 12) { $$m++} else {$$m=1;$$y++}; printf("%d.%02d\n",$$y,$$m);')

%:
	dh $@

override_dh_auto_configure:
	perl Configure.pl --backends=moar --prefix=/usr

override_dh_gencontrol:
	dh_gencontrol -- -Vmoarvm:Depends="moarvm (>= $(MOARVM_VERSION)), moarvm(<< $(MOARVM_NEXT))"

override_dh_auto_build:
	dh_auto_build
	pod2man --name=nqp-m debian/running.pod debian/nqp-m.1
	ln -s nqp-m.1 debian/nqp.1

override_dh_auto_install:
	dh_auto_install
	rm -r debian/nqp/usr/share/nqp/lib/profiler/