]> git.donarmstrong.com Git - debhelper.git/blobdiff - Makefile
dh addon interface
[debhelper.git] / Makefile
index ec7e590e064739cfa76319d42fb39ee1a27bb0b9..6cf714cdf712c3d29cbbb971d073df780aa7bd9d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -31,7 +31,7 @@ POD2MAN=pod2man -c Debhelper -r "$(VERSION)"
 LANGS=$(notdir $(basename $(wildcard man/po4a/po/*.po)))
 
 build: version
-       find . -maxdepth 1 -type f -perm +100 -name "dh_*" \
+       find . -maxdepth 1 -type f -perm +100 -name "dh*" \
                -exec $(POD2MAN) {} {}.1 \;
        cat debhelper.pod | \
                $(MAKEMANLIST) `find . -maxdepth 1 -type f -perm +100 -name "dh_*" | sort` | \
@@ -40,7 +40,7 @@ build: version
        set -e; \
        for lang in $(LANGS); do \
                dir=man/$$lang; \
-               for file in $$dir/dh_*.pod; do \
+               for file in $$dir/dh*.pod; do \
                        prog=`basename $$file | sed 's/.pod//'`; \
                        $(POD2MAN) $$file $$prog.$$lang.1; \
                done; \
@@ -63,10 +63,13 @@ clean:
 install:
        install -d $(DESTDIR)/usr/bin \
                $(DESTDIR)/usr/share/debhelper/autoscripts \
-               $(DESTDIR)$(PERLLIBDIR)
-       install $(shell find -maxdepth 1 -mindepth 1 -name dh_\* |grep -v \.1\$) $(DESTDIR)/usr/bin
-       install autoscripts/* $(DESTDIR)/usr/share/debhelper/autoscripts
-       install Debian/Debhelper/*.pm $(DESTDIR)$(PERLLIBDIR)
+               $(DESTDIR)$(PERLLIBDIR)/Sequence
+       install $(shell find -maxdepth 1 -mindepth 1 -name dh\* |grep -v \.1\$$) $(DESTDIR)/usr/bin
+       install -m 0644 autoscripts/* $(DESTDIR)/usr/share/debhelper/autoscripts
+       install -m 0644 Debian/Debhelper/*.pm $(DESTDIR)$(PERLLIBDIR)
+       install -m 0644 Debian/Debhelper/Sequence/*.pm $(DESTDIR)$(PERLLIBDIR)/Sequence
 
 test: version
        ./run perl -MTest::Harness -e 'runtests grep { ! /CVS/ && ! /\.svn/ } @ARGV' t/*
+       # clean up log etc
+       ./run dh_clean