2 # Debian Customisations Copyright 2006 Ian Beckwith <ianb@nessie.mcc.ac.uk>
3 # Based on a template by Marc Brockschmidt <marc@dch-faq.de>
5 # Uncomment this to turn on verbose mode.
8 # If set to a true value then MakeMaker's prompt function will
9 # always return the default without waiting for user input.
10 export PERL_MM_USE_DEFAULT=1
12 PACKAGE=libwww-opensearch-perl
18 TMP =$(CURDIR)/debian/$(PACKAGE)
24 $(PERL) Makefile.PL INSTALLDIRS=vendor
33 [ ! -f Makefile ] || $(MAKE) realclean
35 dh_clean build-stamp install-stamp
37 install: build install-stamp
43 ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
47 $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
49 [ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/lib/perl5
54 # We have nothing to do by default.
56 binary-indep: build install
60 dh_installchangelogs Changes
70 binary: binary-indep binary-arch
71 .PHONY: build clean binary-indep binary-arch binary