Makefile.PL: handle PREFIX consistently
authorPhilipp A. Hartmann <philipp.hartmann@offis.de>
Mon, 27 Aug 2012 11:23:04 +0000 (13:23 +0200)
committerPhilipp A. Hartmann <philipp.hartmann@offis.de>
Mon, 27 Aug 2012 13:22:51 +0000 (15:22 +0200)
commitee5db59fcb66b7fb4685e87f0dd73062b472c24d
tree84b740e2ee0eb2bfabc99055aa2b9a14df4295b9
parent1768fcdf2e7929a9b9cc733a8b72c46ea220b134
Makefile.PL: handle PREFIX consistently

This patch fixes the handling of the PREFIX variable in the generated
Makefile.  The following issues are addressed:

 * drop explicit PREFIX in WriteMakefile call

   By default, the local $Config{prefix} setting should be fine.
   This allows to specify either PREFIX or INSTALL_BASE as Makefile.PL
   parameter, depending on the user needs.

 * use PREFIX in extra_install target

   Previously, pristine-tar, pristine-gz, pristine-bz2, pristine-xz, and
   zgz were always installed to /usr/bin (if $DESTDIR was not set). Also,
   the man pages were always installed to /usr/share/man/man1.

 * call $(MAKE) and pass PREFIX to the build of suse-bzip2

   Although PREFIX is not really used during the build of suse-bzip2,
   it should be passed to the build to enable e.g. the inclusion
   of the "correct" location during the linking process.

Reported-by: Torsten Maehne <torsten.maehne@gmx.de>
Signed-off-by: Philipp A. Hartmann <philipp.hartmann@offis.de>
Makefile.PL