Makefile.PL: use EXE_FILES and clean rules, add info
authorPhilipp A. Hartmann <philipp.hartmann@offis.de>
Mon, 27 Aug 2012 12:48:17 +0000 (14:48 +0200)
committerPhilipp A. Hartmann <philipp.hartmann@offis.de>
Mon, 27 Aug 2012 13:26:23 +0000 (15:26 +0200)
Installation of the scripts and cleanup of the zgz binary
by using MakeMake magic instead of manual rules.

Additionally, AUTHOR and ABSTRACT information is added to the
WriteMakefile call.

Makefile.PL

index 9acad009c6c1160d1ec7e5d51d32ee00d7851820..2d30ef0f04dbd0ffdee36ef392036b0d3ebaad86 100755 (executable)
@@ -22,14 +22,12 @@ zgz/zgz: $(ZGZ_SOURCES)
 
 extra_install:
        install -d $(DESTDIR)$(PREFIX)/bin
-       install pristine-tar pristine-gz pristine-bz2 pristine-xz zgz/zgz $(DESTDIR)$(PREFIX)/bin
        install zgz/zgz $(DESTDIR)$(PREFIX)/bin
        install -d $(DESTDIR)$(ZGZ_LIB)/suse-bzip2
        install pit/suse-bzip2/bzip2 $(DESTDIR)$(ZGZ_LIB)/suse-bzip2
        install pit/suse-bzip2/libbz2* $(DESTDIR)$(ZGZ_LIB)/suse-bzip2
 
 extra_clean:
-       rm -f *.1 zgz/zgz
        $(MAKE) clean -C pit/suse-bzip2 PREFIX=$(PREFIX)
 
 pristine-tar.spec: debian/changelog
@@ -42,6 +40,10 @@ pristine-tar.spec: debian/changelog
 
 WriteMakefile(
        NAME            => 'Pristine',
+       AUTHOR          => 'Joey Hess <joey@kitenet.net>',
+       ABSTRACT        =>
+               'regenerate a pristine upstream tarball using only a small '.
+               'binary delta file and a revision control checkout',
        MAN1PODS        => {
                'pristine-tar' => '$(INST_MAN1DIR)/pristine-tar.1',
                'pristine-bz2' => '$(INST_MAN1DIR)/pristine-bz2.1',
@@ -51,4 +53,6 @@ WriteMakefile(
        },
        MAN3PODS        => {},
        PMLIBDIRS       => ["Pristine"],
+       EXE_FILES       => ["pristine-tar","pristine-bz2","pristine-gz","pristine-xz"],
+       clean           => { FILES => 'zgz/zgz' },
 );