File: rules

package info (click to toggle)
libmath-gsl-perl 0.42-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 155,120 kB
  • sloc: ansic: 676,323; perl: 24,277; makefile: 12
file content (26 lines) | stat: -rwxr-xr-x 673 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/make -f

PACKAGE = $(shell dh_listpackages)
TMP     = $(CURDIR)/debian/$(PACKAGE)

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_build:
	# make sure to remove all pre-built files, so that e.g.
	# .c files in xs/ are rebuilt from swig input files
	perl ./Build clean

	# after cleaning we get an error:
	# "Configuration seems to be out of date, please re-run 'perl Build.PL' again."
	# so let's do that was well
	dh_auto_configure

	# now we can finally build
	dh_auto_build

override_dh_installexamples:
	dh_installexamples
	sed -i '1s|^#!/usr/bin/env perl|#!/usr/bin/perl|' $(TMP)/usr/share/doc/$(PACKAGE)/examples/sf/mathieu.pl