File: rules

package info (click to toggle)
dh-make-perl 0.107
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 1,156 kB
  • sloc: perl: 5,366; makefile: 36; sh: 7
file content (27 lines) | stat: -rwxr-xr-x 562 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
#!/usr/bin/make -f

BUILDHOME = $(CURDIR)/debian/build

%:
	dh $@

override_dh_auto_test:
# leave this here for Test::DistManifest..I want it to happen on package build but not on CPAN install.
	mkdir -p $(BUILDHOME)
	HOME=$(BUILDHOME) dh_auto_test

override_dh_clean:
	dh_clean -Xt/dists/Strange-2.1/DEADJOE
	rm -rf $(BUILDHOME)

	# clean after test packages
	for i in Strange-0.1 Strange-2.1; do\
		if test -d "t/dists/$$i/debian"; then \
		    ( \
			cd t/dists/$$i && \
			debian/rules clean && \
			cd .. && \
			rm -rf $$i/debian; \
		    ) \
		fi \
	done