File: rules

package info (click to toggle)
liblog-report-lexicon-perl 1.11-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 424 kB
  • sloc: perl: 2,690; makefile: 13
file content (20 lines) | stat: -rwxr-xr-x 565 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)

%:
	dh $@

override_dh_auto_install:
	dh_auto_install
	# installed as example
	$(RM) -rv $(TMP)/usr/bin $(TMP)/usr/share/man/man1
	# works only on Windows
	$(RM) -v $(TMP)/usr/share/man/man3/Log::Report::Win32Locale.3pm \
		$(TMP)/usr/share/perl5/Log/Report/Win32Locale.pm \
		$(TMP)/usr/share/perl5/Log/Report/Win32Locale.pod

override_dh_installexamples:
	dh_installexamples
	sed -i '1s|^#!/usr/bin/env perl|#!/usr/bin/perl|' $(TMP)/usr/share/doc/$(PACKAGE)/examples/*