File: rules

package info (click to toggle)
libstring-tagged-terminal-perl 0.08-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 172 kB
  • sloc: perl: 653; makefile: 13
file content (20 lines) | stat: -rwxr-xr-x 624 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
20
#!/usr/bin/make -f

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

SKIP_TESTS = $(shell cat debian/tests/pkg-perl/smoke-skip)
TEST_FILES = $(filter-out $(SKIP_TESTS), $(wildcard t/*.t))

%:
	dh $@

override_dh_auto_test:
	dh_auto_test -- --test_files="$(TEST_FILES)"

override_dh_auto_install:
	dh_auto_install
	# don't install Windows specific files
	$(RM) -v $(TMP)/usr/share/perl5/String/Tagged/Terminal/Win32Console.pm \
		$(TMP)/usr/share/man/man3/String::Tagged::Terminal::Win32Console.3pm
	rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/share/perl5/String/Tagged/Terminal/