File: rules

package info (click to toggle)
mipe 1.1-7
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 372 kB
  • sloc: perl: 2,806; makefile: 10
file content (18 lines) | stat: -rwxr-xr-x 438 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

include /usr/share/dpkg/default.mk

%:
	dh $@

override_dh_install:
	dh_install
	# remove *.pl extension and create manpages using pod2man
	for i in *.pl; do \
		bname=`echo $$i | sed -e 's/.pl$$//'`; \
		cp -a $$i $(CURDIR)/debian/$(DEB_SOURCE)/usr/bin/$$bname ; \
		pod2man $$i > $(CURDIR)/debian/$(DEB_SOURCE)/usr/share/man/man1/$${bname}.1 ; \
	done