[Click] Patch for DESTDIR, making click easier to distribute as
RPM
Eddie Kohler
kohler at CS.UCLA.EDU
Thu Aug 12 11:16:45 EDT 2004
Ah, thanks for this explanation. I'll add the $(DESTDIR).
Eddie
On Aug 12, 2004, at 9:33 AM, Jeff Gold wrote:
> Eddie Kohler wrote:
>> Thanks, but I'm not going to apply this. Why wouldn't you just
>> change the values of $(bindir) et al by prefixing $(DESTDIR)?
>
> Because when making RPM packages you want to install the files
> somewhere
> other than their final destinations. This is useful because:
>
> * Building the package doesn't require installing on the build
> machine. That keeps the build machine stable.
>
> * A user other than root can build packages even though they
> can't actually write to $(bindir) and friends.
>
> Also, DESTDIR comes in handy when building chroot jails, user-mode
> Linux
> partitions and things like that.
>
>> Furthermore shouldn't it be something like bindir =
>> $(DESTDIR)@bindir@ rather than $(DESTDIR)/@bindir@, in case @bindir@
>> was a relative path?
>
> Probably so. Makefiles generated by automake seem to use the
> equivalent
> of $(DESTDIR)@bindir@ everywhere.
>
> Jeff
More information about the click
mailing list