File: rules

package info (click to toggle)
libdevice-cdio-perl 2.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 2,848 kB
  • sloc: ansic: 14,413; perl: 4,795; makefile: 20; sh: 3
file content (34 lines) | stat: -rwxr-xr-x 922 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
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --buildsystem=perl_build

override_dh_clean:
	# mv backups back
	for F in perlcdio perliso9660 perlmmc ; do \
		[ ! -f $(CURDIR)/lib/$$F.bak ] || mv -v $(CURDIR)/lib/$$F.bak $(CURDIR)/lib/$$F.pm ; \
	done

	dh_clean

override_dh_auto_configure:
	dh_auto_configure -- --verbose 1

override_dh_auto_build:
	# mv shipped .pm files away to ensure that the swig-generated ones
	# are used. Build.PL uses M::B's copy_if_modified().
	# also make shipped generated *.c files writeable, otherwise swig fails later.
	for F in perlcdio perliso9660 perlmmc ; do \
		[ ! -f $(CURDIR)/lib/$$F.pm ] || mv -v $(CURDIR)/lib/$$F.pm $(CURDIR)/lib/$$F.bak ; \
		[ ! -f $(CURDIR)/$${F}_wrap.c ] || chmod -v 664 $(CURDIR)/$${F}_wrap.c; \
	done

	dh_auto_build

override_dh_auto_test:
	CI=1 dh_auto_test

override_dh_installchangelogs:
	dh_installchangelogs Changes