X-Git-Url: http://erislabs.net/gitweb/?p=libwww-opensearch-perl.git;a=blobdiff_plain;f=debian%2Frules;h=ac51683bf9d217b4123c64c6cb546d1470d5f980;hp=bf116f4ec5d1f781e2c204d0d8114c0d192f54a2;hb=c59559ced45bf2ee96f9d175e885ec0403e34a44;hpb=fd3b37772b8be53cd079f2c34ba4f8cdc422d29d diff --git a/debian/rules b/debian/rules index bf116f4..ac51683 100755 --- a/debian/rules +++ b/debian/rules @@ -40,13 +40,13 @@ install-stamp: dh_testroot dh_clean -k +ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS))) $(MAKE) test +endif + $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr - # As this is a architecture independent package, we are not - # supposed to install stuff to /usr/lib. MakeMaker creates - # the dirs, we delete them from the deb: - rmdir --ignore-fail-on-non-empty --parents $(TMP)/usr/lib/perl5 + [ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/lib/perl5 touch install-stamp