File: rules

package info (click to toggle)
cpanminus 1.7044-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,372 kB
  • sloc: perl: 14,766; makefile: 14
file content (21 lines) | stat: -rwxr-xr-x 457 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
#!/usr/bin/make -f

BUILDHOME = $(CURDIR)/debian/build
FAT = $(CURDIR)/fatpacked/App/cpanminus/fatscript.pm

%:
	dh $@

override_dh_clean:
	dh_clean
	rm -rf $(BUILDHOME)

override_dh_auto_configure:
	perl $(CURDIR)/maint/build.pl
	# App::cpanminus::fatscript is used by carton, so let's install it
	[ ! -f $(FAT) ] || cp -v $(FAT) $(CURDIR)/lib/App/cpanminus
	dh_auto_configure

override_dh_auto_test:
	mkdir -p $(BUILDHOME)
	HOME=$(BUILDHOME) dh_auto_test