From owner-freebsd-doc@FreeBSD.ORG Thu Jan 22 00:46:45 2009 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C1BB5106566B for ; Thu, 22 Jan 2009 00:46:45 +0000 (UTC) (envelope-from xuchen66@gmail.com) Received: from mail-gx0-f21.google.com (mail-gx0-f21.google.com [209.85.217.21]) by mx1.freebsd.org (Postfix) with ESMTP id 0DF248FC14 for ; Thu, 22 Jan 2009 00:46:44 +0000 (UTC) (envelope-from xuchen66@gmail.com) Received: by gxk14 with SMTP id 14so4516405gxk.19 for ; Wed, 21 Jan 2009 16:46:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=VjWUSeI7LxGc9ByQskB26qeCGiyW3bQexueDvq4kkI8=; b=rqgQJThwL5jzLdkOPlNc2SHSOHrH/oawj+MiYr3N0uiTj016g6aKkvB9Xcxi0Q1sC7 IONsuEo744RoI9fhSF13mKlYalH6hdagGejtqlfS5vz521RPhYGnkgFAsg0KNTlCKYTb cYrqM04vhYyo1pPKUobMpsqe1Jb8fz3cJrLLU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=cNCsEZwOv5ydX/J5NyivMn3Y2elIaJ/WOndLS8eJSFPlyKmf34Dxb+hoIM8gAu/K5W vfYMFSiHtFkjAtxCWqnFVMJRlmI7e4nOOKYVvmzzWfjyTsuUi4VStHA9+mXbKnreRbqs qk8e5ZBKWIKCiw0P/KCpz9eSBIfqe6VwW7XwU= MIME-Version: 1.0 Received: by 10.90.120.14 with SMTP id s14mr3736444agc.20.1232585204101; Wed, 21 Jan 2009 16:46:44 -0800 (PST) In-Reply-To: <4977AFD5.8010302@FreeBSD.org> References: <184b087c0901211428h124ce3a1o994f9ef61fb0ca68@mail.gmail.com> <4977AFD5.8010302@FreeBSD.org> Date: Wed, 21 Jan 2009 19:46:44 -0500 Message-ID: <184b087c0901211646hb8cdc06m87d3bc77c5610f9d@mail.gmail.com> From: Chen Xu To: Gabor PALI Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-doc@freebsd.org Subject: Re: where to define an alternative install location X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jan 2009 00:46:46 -0000 Hi Gabor, and all, thanks for the reply. That works nicely. Certainly, one can even add an entry DOCDIR=target in /etc/make.conf for convenience. When I tried to look inside the doc source dir/share/mk/doc.install.mk whose name suggests that I can define variable there, variable defined in that seemed not working at all there. Eventually, I found out that I had to modify the global file at /usr/share/mk/bsd.own.mk . I felt that this was very confusing. So yes, if this is mentioned in handbook, that would be a lot simpler for people who don't know about it yet. OK, now comes my 2nd annoying but reasonable question. (how) Can I build my doc in one machine and install on a remote box running httpd server? Thanks, Chen On Wed, Jan 21, 2009 at 6:29 PM, Gabor PALI wrote: > Hello Chen, > > You wrote: >> If I want to install the built doc into different location from default >> /usr/doc, where to define the variable? > > Good question! I think you should use the DOCDIR variable in the > following syntax: > > # make DOCDIR=target install clean > > where *target* is the absolute path of the target directory. > > > Hope that helps, > :g > > > PS: I think it is worth to be added to the Handbook... ;) >