File: rules

package info (click to toggle)
findimagedupes 2.18-7
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 200 kB
  • sloc: perl: 1,041; makefile: 11
file content (26 lines) | stat: -rwxr-xr-x 960 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/make -f
# debian/rules for findimagedupes using cdbs
# Andreas Tille <tille@debian.org>, GPL

pkg:=findimagedupes

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/perlmodule.mk

DEB_DH_PERL_ARGS := usr/lib/findimagedupes/lib
DEB_MAKEMAKER_USER_FLAGS := LIB=/usr/lib/findimagedupes/lib

build/findimagedupes::

	# Bug #531145: Removing installation instructions from the manpage, as
	# they are useless if the package is installed. Upstream has no other
	# documentation, so this section will stay in upstream's version.
	if grep -q '^=head1 INSTALLATION' $(pkg); then \
        sed -i.pristine '/^=head1 INSTALLATION/,/^=head1 /{/^=head1 OPTIONS/p;d;}' \
		$(pkg); fi
	# Upstream has now updated README himself in version 2.18
	# It might be reasonable to create the README this way anyway
	# pod2text findimagedupes > ./tmp/README

clean::
	[ ! -f findimagedupes.pristine ] || mv findimagedupes.pristine findimagedupes