File: rules

package info (click to toggle)
libkiokudb-perl 0.57-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,384 kB
  • sloc: perl: 13,313; makefile: 12
file content (20 lines) | stat: -rwxr-xr-x 477 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

	# mv Japanese manpage to better location
	dh_installdirs usr/share/man/ja/man3/
	mv -v $(TMP)/usr/share/man/man3/POD2::JA::KiokuDB::Tutorial.3pm \
		$(TMP)/usr/share/man/ja/man3/KiokuDB::Tutorial.3pm

	# remove empty manpages
	for f in $(TMP)/usr/share/man/man3/*.3pm ; do \
		grep -q DESCRIPTION $$f || $(RM) -v $$f ; \
	done