[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sr #110212] Transform pkgdatadir using program-prefix and -suffix

From: Nick Bowler
Subject: Re: [sr #110212] Transform pkgdatadir using program-prefix and -suffix
Date: Wed, 28 Jul 2021 19:32:06 -0400

On 2021-07-27, Eric Siegerman <INVALID.NOREPLY@gnu.org> wrote:
> Follow-up Comment #4, sr #110212 (project autoconf):
> 0 Edit _configure.ac_: In the _AC_INIT()_ call, change the first argument
> to
> the name you want to use for the subdirectory
> 0 Run _autoconf_ (perhaps indirectly, if the package provides an
> _autogen.sh_
> script or the like)
> 0 Run _configure_ with _--program-prefix_, _--program-suffix_, and/or
> _--program-transform-name_, as desired
> 0 Once the build is finished, do a test install into a scratch location
> using
> _DESTDIR=/where/ever_, and look it over to make sure all the pathnames that
> needed to be changed, were in fact changed.

Instead of all this hackery you can just set pkgdatadir when you build the
program, surely that's easier.  For example:

  % make clean
  % make pkgdatadir=/wherever/you/want install

This is expected to work with all build systems that follow the GNU
coding standards.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]