File: rules

package info (click to toggle)
libconfig-identity-perl 0.0019-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, trixie
  • size: 208 kB
  • sloc: perl: 418; makefile: 12
file content (19 lines) | stat: -rwxr-xr-x 407 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
#!/usr/bin/make -f

GPGTESTDIR=$(CURDIR)/t/assets/gpg

%:
	dh $@

override_dh_clean:
	dh_clean
	# restore backup of gpg test directory
	[ ! -d $(GPGTESTDIR).save ] || { \
		$(RM) -rv $(GPGTESTDIR); \
		mv -v $(GPGTESTDIR).save $(GPGTESTDIR); \
	}

override_dh_auto_test:
	# copy gpg test directory away before it gets changed
	[ ! -d $(GPGTESTDIR) ] || cp -rv $(GPGTESTDIR) $(GPGTESTDIR).save
	dh_auto_test