File: rules

package info (click to toggle)
libconfig-simple-perl 4.59-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 336 kB
  • sloc: perl: 659; makefile: 8
file content (14 lines) | stat: -rwxr-xr-x 342 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/make -f

%:
	dh $@

# test files are changed during tests
# we copy t/ away and move it back afterwards
override_dh_auto_clean:
	dh_auto_clean
	[ ! -d $(CURDIR)/t.save ] || ( $(RM) -r $(CURDIR)/t && mv $(CURDIR)/t.save $(CURDIR)/t )

override_dh_auto_test:
	[ ! -d $(CURDIR)/t ] || cp -r $(CURDIR)/t $(CURDIR)/t.save
	dh_auto_test