--- Makefile.orig 2014-11-16 15:43:09 UTC +++ Makefile @@ -1,5 +1,5 @@ # List of files of dh_* commands. Sorted for debhelper man page. -COMMANDS=$(shell find . -maxdepth 1 -type f -perm /100 -name "dh_*" -printf "%f\n" | sort) +COMMANDS=$(shell find . -maxdepth 1 -type f -perm +a+x -name "dh_*" -print | cut -c3- | sort) # Find deprecated commands by looking at their synopsis. DEPRECATED=$(shell egrep -l '^dh_.* - .*deprecated' $(COMMANDS)) @@ -88,17 +88,16 @@ endif done; install: - install -d $(DESTDIR)$(PREFIX)/bin \ - $(DESTDIR)$(PREFIX)/share/debhelper/autoscripts \ - $(DESTDIR)$(PERLLIBDIR)/Sequence \ - $(DESTDIR)$(PERLLIBDIR)/Buildsystem + install -d \ + $(DESTDIR)${SITE_PERL}/Debian/Debhelper/Sequence \ + $(DESTDIR)${SITE_PERL}/Debian/Debhelper/Buildsystem install dh $(COMMANDS) $(DESTDIR)$(PREFIX)/bin - install -m 0644 autoscripts/* $(DESTDIR)$(PREFIX)/share/debhelper/autoscripts - install -m 0644 Debian/Debhelper/*.pm $(DESTDIR)$(PERLLIBDIR) + install -m 0644 autoscripts/* $(DESTDIR)$(PREFIX)/bin + install -m 0644 Debian/Debhelper/*.pm $(DESTDIR)${SITE_PERL}/Debian/Debhelper [ "$(PREFIX)" = /usr ] || \ - sed -i '/$$prefix=/s@/usr@$(PREFIX)@g' $(DESTDIR)$(PERLLIBDIR)/Dh_Lib.pm - install -m 0644 Debian/Debhelper/Sequence/*.pm $(DESTDIR)$(PERLLIBDIR)/Sequence - install -m 0644 Debian/Debhelper/Buildsystem/*.pm $(DESTDIR)$(PERLLIBDIR)/Buildsystem + sed -i '' '/$$prefix=/s@/usr@$(PREFIX)@g' $(DESTDIR)${SITE_PERL}/Debian/Debhelper/Dh_Lib.pm + install -m 0644 Debian/Debhelper/Sequence/*.pm $(DESTDIR)${SITE_PERL}/Debian/Debhelper/Sequence + install -m 0644 Debian/Debhelper/Buildsystem/*.pm $(DESTDIR)${SITE_PERL}/Debian/Debhelper/Buildsystem test: version ./run perl -MTest::Harness -e 'runtests grep { ! /CVS/ && ! /\.svn/ && -f && -x } @ARGV' t/* t/buildsystems/*