[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-www
Subject:    Re: why does "make install" write to files outside of DESTDIR ?
From:       Eitan Adler <lists () eitanadler ! com>
Date:       2018-07-30 5:49:13
Message-ID: CAF6rxgmu7YYmyt43DXMGUexhbcWH3ebuJu5FPsATqbmWPMeW2Q () mail ! gmail ! com
[Download RAW message or body]

On Sun, 29 Jul 2018 at 17:55, Danilo G. Baio <dbaio@freebsd.org> wrote:
>
> On Tue, Jun 19, 2018 at 06:12:32PM -0700, Eitan Adler wrote:
> > On 13 June 2018 at 05:21, Eitan Adler <lists@eitanadler.com> wrote:
> > > Steps to reproduce:
> > >
> > > rm -rf /srv/www/devbox/
> > > mkdir /srv/www/devbox/
> > > env DESTDIR=/srv/www/devbox/docs/docs make -s all install
> > >
> > > Expected behavior: no files are written to outside of /srv/www/devbox/docs/docs
> > > Actual behavior: /srv/www/devbox/articles and /srv/www/devbox/books exist
> > >
> > > Why is this? Is there some way to avoid this?
> >
> > anyone? This is particularly annoying when testing subsets of
> > documentation. Is there any variable to set that will work similarly
> > to MAKEOBJIRPREFIX from src?
> > I'd like to run "make install" from a doc directory and have it
> > install to the "expected" place so that browsing documentation from
> > the webserver still works.
>
>
> You should try DOCDIR instead of DESTDIR.
> It will create all the structure, see this:

Thank you! That saved me hours of frustration.

-- 
Eitan Adler
_______________________________________________
freebsd-doc@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-doc
To unsubscribe, send any mail to "freebsd-doc-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic